SomeOtherDoomGuy wrote:I have an actor and wish it to change sprite on low health. All I know how to do at the moment is go from spawn state to death state for sprite change but I would like something in the middle.
Its no a weapon or monster just a shootable decoration. I understand that I need to check for health and could use get actor property with acs. How would I go about this in decorate?
Similar to Spawn and Death state, you also have the Wound state if you haven't tried it already.
You'll need to create a seperate frame (say.... WOUNA0, for instance), then set this up in the actor's decorate:
- Code: Select all • Expand view
States
{
Wound:
WOUN A 10
LOOP
}
Obviously copy over any special actions held in the actor's spawn state - i.e. A_look, activates or whatever....
Then set up WoundHealth, which is similar to Health but determines when the actor will fall into the wound loop instead.
Let me know if this works.
