A_CheckHeight

From SRB2 Wiki
Jump to navigation Jump to search

A_CheckHeight is an action that calls a state depending on the absolute height difference between the actor and its target or tracer. The lower 16 bits of Var1 determines the maximum height difference, measured in fracunits, between the two Objects to allow the state to be called with – i.e. if the height difference is less than or equal to the lower 16 bits of Var1, the state is called. The upper 16 bits of Var1 determines whether the actor's target (0) or tracer (1) is used. Var2 determines the state to call when this action is successful; see List of states for a full list. If the chosen Object does not exist, this action will do nothing.

This action originates from the v2.0 modification SRB2Morphed and was added to SRB2 itself in v2.1.

  Actions – Checking [view]
A_BubbleCheckA_CheckAmbushA_CheckHealthA_CheckHeightA_CheckRandomA_CheckRangeA_CheckRingsA_CheckTargetRingsA_CheckThingCountA_CheckTotalRingsA_CheckTrueRangeA_ChickenCheckA_LookA_SearchForPlayers