GetActorFloorZ
fixed GetActorFloorZ (int tid)
Usage
This returns the highest floor point underneath the actor, as an absolute value.
The actor must be in the blockmap for this to be updated after spawn.
Parameters
- tid: TID of the actor.
Return value
The highest floor point underneath the actor, as a fixed point value world coordinate.
Examples
This script reports the height of the player off the ground:
script 124 ENTER { while (TRUE) { Print (f:GetActorZ (0) - GetActorFloorZ (0)); Delay (1); } }
See also
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.