A_InfoState

From SRB2 Wiki
Jump to: navigation, search

A_InfoState is an action that switches the actor's state to one of a selection of anchor states for the actor's Object type, determined by the value of Var1 – all Object type anchor states except PainState are selectable with this action. In SRB2, this action is used by the auxiliary states S_SPAWNSTATE to S_RAISESTATE to allow quick access to their corresponding anchor states. Listed below are the possible values of Var1 with the anchor states that would be called by them, along with the auxiliary state that calls A_InfoState with each value of Var1.

Var1 Anchor state Auxiliary state
0 SpawnState S_SPAWNSTATE
1 SeeState S_SEESTATE
2 MeleeState S_MELEESTATE
3 MissileState S_MISSILESTATE
4 DeathState S_DEATHSTATE
5 XDeathState S_XDEATHSTATE
6 RaiseState S_RAISESTATE

If the actor is already at the state A_InfoState is trying to send it to, the action will do nothing. Unlike all other actions, Lua cannot be used to replace A_InfoState with a function using the same name.

  Actions – Utility [view]
A_ArrowCheckA_CheckBuddyA_FaceTargetA_FaceTracerA_InfoStateA_Repeat