GetActorCeilingZ

From Eternity Wiki
Revision as of 14:18, 9 May 2026 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=Gets an actor's ceiling or floor touch height. |usage= ''fixed'' '''GetActorCeilingZ'''(''int tid'') ''fixed'' '''GetActorFloorZ'''(''int tid'') |parameters= *''tid'': TID of actor |return= The Z height of the floor or ceiling where the actor would touch the given surface, in fixed point. |notes=This is slope-aware, and the touch height may be caused by another sector, not necessarily the one in the middle of the hitbox. |id=ACS internal}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Gets an actor's ceiling or floor touch height.

Usage[edit]

fixed GetActorCeilingZ(int tid)

fixed GetActorFloorZ(int tid)

Parameters[edit]

  • tid: TID of actor

Return value[edit]

The Z height of the floor or ceiling where the actor would touch the given surface, in fixed point.

Examples[edit]

No examples given.

Notes[edit]

This is slope-aware, and the touch height may be caused by another sector, not necessarily the one in the middle of the hitbox.

This function's identification in zspecial.acs is: ACS internal.

See also[edit]