GetActorPitch: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{ACSFunction|description=Returns a tagged actor's view pitch. |usage=''fixed'' '''GetActorPitch'''(''int'' ''tid'') |parameters= *''tid'': TID of actor to check. |return=''angle'': fixed point angle of view pitch. |notes=Currently this only works with players, so the only useful TID values are 0 for the activator, or -1 to -4 to select a given player. The pitch is determined by the looking angle when free-look is enabled. |id=(ACS internal)}}")
 
No edit summary
Line 5: Line 5:
|return=''angle'': [[fixed point angle]] of view pitch.
|return=''angle'': [[fixed point angle]] of view pitch.
|notes=Currently this only works with players, so the only useful TID values are 0 for the activator, or -1 to -4 to select a given player. The pitch is determined by the looking angle when free-look is enabled.
|notes=Currently this only works with players, so the only useful TID values are 0 for the activator, or -1 to -4 to select a given player. The pitch is determined by the looking angle when free-look is enabled.
|id=(ACS internal)}}
|id=(ACS internal)
|seealso=
*[[SetActorPitch]]}}

Revision as of 15:11, 5 May 2026

Description

This is an ACS built-in function.

Returns a tagged actor's view pitch.

Usage

fixed GetActorPitch(int tid)

Parameters

  • tid: TID of actor to check.

Return value

angle: fixed point angle of view pitch.

Examples

No examples given.

Notes

Currently this only works with players, so the only useful TID values are 0 for the activator, or -1 to -4 to select a given player. The pitch is determined by the looking angle when free-look is enabled.

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

See also