GetActorY

From ZDoom Wiki
Revision as of 03:14, 11 February 2013 by Deded007 (talk | contribs) (formatting, see also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

fixed GetActorY (int tid)

Usage

This returns the Y coordinate of the actor. If tid is 0, the function uses the activator.

Parameters

  • tid: TID of the actor.

Return value

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

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.

See also