skib Posted January 27, 2011 So I pasted the pistol code into the XWE DECORATE lump and changed the actor name to strong pistol, then i saved and ran it in st it worked! I pasted A_FirePistol into it but it didn't work! So I added the {{}} where it was needed and it said: PISG is not a flag! Here's the code plus the brackets: { {PISG B 0 A_FireBullets (5.6, 0, 1, 5, "BulletPuff") PISG B 0 A_PlaySound("weapons/pistol", CHAN_WEAPON) PISG B 6 A_GunFlash} } Help! Please. 0 Share this post Link to post
Quasar Posted January 27, 2011 That's not valid DECORATE syntax. It should look something like this:actor Whatever { states { Spawn: FOOB A 5 A_DoStuff("args", 1) loop } } 0 Share this post Link to post
skib Posted January 27, 2011 Quasar said:That's not valid DECORATE syntax. It should look something like this:actor Whatever { states { Spawn: FOOB A 5 A_DoStuff("args", 1) loop } } OK So actor A_FirePistol? 0 Share this post Link to post
Quasar Posted January 28, 2011 skib said:OK So actor A_FirePistol? A_FirePistol would be an action function, not an actor. An actor is an object, such as things you place on the map with Doom Builder or projectiles that monsters fire, or items you can collect. An action function is something that an actor can call from one of its states to perform that action. Such as firing said projectiles, or bullets, or dying, or scratching, or whatever else. 0 Share this post Link to post
wildweasel Posted January 28, 2011 I hate to seem like I'm self-promoting, but you'd probably get a lot of use out of this. 0 Share this post Link to post
skib Posted January 28, 2011 WildWeasel said:I hate to seem like I'm self-promoting, but you'd probably get a lot of use out of this. Great, I should get slade! and no worries! I think I could do it in XWE! 0 Share this post Link to post
skib Posted February 1, 2011 Ok, figured out how to do this! End thread please mod! 0 Share this post Link to post