GetActorFloorZ

From ZDoom Wiki

Jump to: navigation, search

int GetActorFloorZ (int tid)

Usage

This returns the highest floor point underneath the actor, as an absolute value.

Parameters

  • tid
TID of the actor.

Return value

The highest floor point underneath the actor, as an 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);
    }
}
Personal tools