A_CheckFloor

From ZDoom Wiki
Revision as of 12:17, 7 January 2017 by The Zombie Killer (talk | contribs) (Add A_CheckSolidFooting to "See also" section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

state A_CheckFloor (int offset)
state A_CheckFloor (str "state")

Note: Jump functions perform differently inside of anonymous functions.

Jumps if actor is standing on or submerged into the floor.

Examples

This rocket does not explode when it hits the ground.

ACTOR Useless_Rocket: Rocket Replaces Rocket
{
  DeathSound "None"
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  CancelMovement:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 0 A_CheckFloor("CancelMovement")
    MISL B 0 A_PlaySound("weapons/rocklx")
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
  }
}

See also