GetActorY

From ZDoom Wiki
Jump to: navigation, search

int GetActorY (int tid)

Usage

This returns the Y coordinate of the actor, as an absolute value.

Parameters

  • tid: TID of the actor.

Return value

The Y coordinate of the actor, as an fixed point value world coordinate.

If the argument passed is 0, then it returns the Y coordinate of the activator. (development version r2787+ only)

Examples

This is a semi-useful debug script

script 123 ENTER
{
    while (true)
    {
        Print (f:GetActorX (0), s:", ", f:GetActorY (0));
        Delay (1);
    }
}

It creates a display of the player's in-game coordinates.

Personal tools
Namespaces
Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox