Difference between revisions of "SetAngle"

imported>Fella
Tags: Visual edit Manual revert
 
(3 intermediate revisions by 3 users not shown)
Line 5: Line 5:


Sets the object's rotation to the specified orientation along the selected local axis (x, y, or z).  
Sets the object's rotation to the specified orientation along the selected local axis (x, y, or z).  
==Notes==
When called on the player and actors
*SetAngle Z rotates the player/actor as it rotates any object in game. It can be used to force the player or actor face a certain direction. E.g. In an exterior cells, "Player.SetAngle Z 45" forces the player face NE.
*Player and actors cannot be tilted forward, backward or sideways like most other objects, therefore changing their X and Y angles has no effect, with the following exception.
*SetAngle X on the player tilts the camera view up/down. It is possible to set the player's X angle beyond the limits of the mouse movement (-89 to 89). Note that the values are counterintuitive: negative angles force the player look up, positive angles, down.


==See Also==
==See Also==
Line 17: Line 27:
[[Category: Movement Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions (CS 1.0)]]
[[Category: Movement Functions (CS 1.0)]]
<!-- Begin Search Terms
Set
Angle
End Search Terms -->

Latest revision as of 21:33, 6 June 2024

Syntax:

SetAngle axis, degrees 

Example:

SetAngle x, 100 

Sets the object's rotation to the specified orientation along the selected local axis (x, y, or z).

NotesEdit

When called on the player and actors

  • SetAngle Z rotates the player/actor as it rotates any object in game. It can be used to force the player or actor face a certain direction. E.g. In an exterior cells, "Player.SetAngle Z 45" forces the player face NE.
  • Player and actors cannot be tilted forward, backward or sideways like most other objects, therefore changing their X and Y angles has no effect, with the following exception.
  • SetAngle X on the player tilts the camera view up/down. It is possible to set the player's X angle beyond the limits of the mouse movement (-89 to 89). Note that the values are counterintuitive: negative angles force the player look up, positive angles, down.


See AlsoEdit