ChangeActorPitch

From Eternity Wiki
Revision as of 08:38, 2 January 2022 by Printz (talk | contribs) (Created page with "{{ACSFunction |description=Changes tagged things' pitch angle. |usage=''void'' '''ChangeActorPitch'''(''int tid'', ''fixed angle'', ''bool interpolate = FALSE'') |parameters=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Changes tagged things' pitch angle.

Usage[edit]

void ChangeActorPitch(int tid, fixed angle, bool interpolate = FALSE)

Parameters[edit]

  • tid: TID of things whose pitch to change.
  • angle: fixed point angle of pitch to set.
  • interpolate: optional, default FALSE. If TRUE, it will allow the view to transition smoothly to the new pitch, if targeted is the controlling player. FALSE will make the transition instant.

Return value[edit]

None.

Examples[edit]

No examples given.

Notes[edit]

This function is same as SetActorPitch, but with the interpolate parameter added.

Currently only players have and use pitch for anything, so this function only makes sense for them.

Positive pitch means to look down, negative to look up.

Currently the player pitch is limited to a constant range. You can edit EDF gameproperties game.lookpitch* to customize this range, but the renderer will still impose a hard limit. Any excess value in angle will be capped.

This function's identification in zspecial.acs is: -80.

See also[edit]