GetActorCeilingZ

From ZDoom Wiki
Jump to navigation Jump to search

fixed GetActorCeilingZ (int tid)

Usage

This returns the lowest ceiling point above the actor, as an absolute value.

Parameters

  • tid: TID of the actor.

Return value

The lowest ceiling point above the actor, as a fixed point value world coordinate.

Examples

This script reports the height of the player off the ceiling:

script 124 ENTER
{
    while (TRUE)
    {
        Print (f:GetActorCeilingZ (0) - GetActorZ (0));
        Delay (1);
    }
}

See also