A_SetMugshotState
Jump to navigation
Jump to search
Note: This page is about a ZScript function. For a similar ACS function see SetMugShotState. |
native void A_SetMugshotState(String name)
Usage
Sets the current mugshot to the specified state. The state must exist (be defined in SBARINFO). The state you set will only be interrupted by damage or if the player picks up a weapon, provided the mugshot supports it.
Examples
The player grins when they pick up this berserk pack.
class GrinBerserk : Berserk { States { Pickup: TNT1 A 0 A_SetMugshotState("Grin"); Goto Super::Pickup; } }
Note: the Pickup state can be used because Berserk is based on CustomInventory rather than PowerupGiver like most powerup pickups.