ChangeActorAngle

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

Description

This is an ACS built-in function.

Changes angle of tagged things to given value.

Usage

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

Parameters

  • tid: TID of things whose angle to set.
  • angle: fixed point angle to set to.
  • interpolate: optional boolean argument on whether to interpolate the angle rotation. By default it's FALSE, which means instant angle change, while TRUE is the common behavior of smoothing the rotation. This is normally only visible if the controlling player is the target thing, because monsters use sprites with few discrete rotation frames.

Return value

None.

Examples

No examples given.

Notes

This is the same as SetActorAngle, but with the interpolate argument added, which is set to FALSE by default.

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

See also