Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
The Doomist

Something wrong with my DECORATE?

Recommended Posts

ZDoom tells me that on Line 3 "{" is expected instead of Actor, but the tutorial for weps on the ZDoom wiki shows it like that. What's wrong? Is it the layout of my file?

DoubleShotgun		//Self Explanitory

Actor DoubleShotgun : Shotgun 20024
	{
		Weapon.SelectionOrder 350
		Inventory.PickupSound "sound/dsgpicku"
		Weapon.AmmoGive 6
		Weapon.AmmoUse 2
		Weapon.SlotNumber 3
		AttackSound "sound/dsgfire"
		States
		{
		Spawn:
			DSHG A -1
			Loop
		Ready:
			DSHG A 1 A_WeaponReady
			Loop
		Deselect:
			DSHG A 1 A_Lower
			Loop
		Select:
			DSHG A 1 A_Raise
			Loop
		Fire:
			DSHG A 3
			DSHG A 0 A_FireBullets (13.4, 9.2, 50, 10, "BulletPuff")
			DSHG A 0 A_FireShotgun
			DSHG A 7
			DSHG B 7
			DSHG C 7 
			DSHG D 7 
			DSHG E 7 A_ReFire
			Goto Ready
		Flash:
			DSHG A 4 Bright A_Light1
			DSHG B 3 Bright A_Light2
			Goto LightDone
		Spawn:
			SDSG A -1
			Stop
		}
	}

Share this post


Link to post
The Doomist said:

ZDoom tells me that on Line 3 "{" is expected instead of Actor, but the tutorial for weps on the ZDoom wiki shows it like that. What's wrong? Is it the layout of my file?

DoubleShotgun		//Self Explanitory

Here's your problem.

// DoubleShotgun		Self Explanatory
Fixed.

Share this post


Link to post

The name you put there was unnecessary. You put the name right next to the word "actor."

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×