A_CheckCeiling
Jump to navigation
Jump to search
state A_CheckCeiling (int offset)
state A_CheckCeiling (str "state")
Note: Jump functions perform differently inside of anonymous functions. |
Usage
Jumps if actor is touching/submerged into the ceiling (calling actor's z + height).
Examples
This rocket does not explode when it hits the ceiling.
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_CheckCeiling("CancelMovement") MISL B 0 A_PlaySound("weapons/rocklx") MISL B 8 Bright A_Explode MISL C 6 Bright MISL D 4 Bright Stop } }