Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
skib

XWE edit weap damage

Recommended Posts

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.

Share this post


Link to post

That's not valid DECORATE syntax. It should look something like this:

actor Whatever
{
  states
  {
  Spawn:
    FOOB A 5 A_DoStuff("args", 1)
    loop
  }
}

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
×