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

DECORATE command to execute ACS script in both spawn and death states

Recommended Posts

Hi, It has been a long time after I disappeared from this forum.

Now I want to edit the DECORATE so that one ACS script will be executed when thing is spawned and another script is executed after thing is destroyed or dead.

The problem is that when I applied DECORATE code in either Spawn or death state, the DECORATE code is still work. However, when I tried to applied to both states at the same time, ZDoom shows error stating that 'tnt1' is an unknown actor property.

Here is my DECORATE.

Actor TidBFGBall : BFGBall replaces BFGBall
{
    States
    {
    Spawn:
        TNT1 A 0
        TNT1 A 0 ACS_ExecuteAlways(998)
        Goto Super::Spawn
    }
    Death:
        TNT1 A 0
        TNT1 A 0 ACS_ExecuteAlways(999)
        Goto Super::Death
    }
}

Share this post


Link to post

The first } is not necessary. All the state labels are part of the States block.

Share this post


Link to post

Oh my... How stupid I am -_-" I didn't notice the bracket and wasted half of a day just because of this.

Thanks for pointing out!

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
×