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
 
(One intermediate revision by the same user not shown)
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=
*[[ChangeActorPitch]]
*[[SetActorPitch]]}}

Latest revision as of 15:13, 5 May 2026

Description[edit]

This is an ACS built-in function.

Returns a tagged actor's view pitch.

Usage[edit]

fixed GetActorPitch(int tid)

Parameters[edit]

  • tid: TID of actor to check.

Return value[edit]

angle: fixed point angle of view pitch.

Examples[edit]

No examples given.

Notes[edit]

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[edit]