Difference between revisions of "SetAngle"

1,242 bytes added ,  20:16, 26 January 2013
m
no edit summary
imported>Wkilleen
 
imported>Hammil
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/SetAngle SetAngle].
{{Function
|CSWikiPage = SetAngle
|origin = GECK1
|summary = Sets the angle of the calling object relative to the world on the specified axis (X, Y, or Z).
|name = SetAngle
|returnType = void
|referenceType = [Object]
|arguments =
  {{FunctionArgument
  |Name = Axis
  |Type = char
  |Value = X, Y, Z
  }}{{FunctionArgument
  |Name = Angle
  |Type = float
  }}
|example = ActorRef.SetAngle Z 270
Player.SetAngle X 28.8
}}
== 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.


=='''See Also'''==
*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.
[[GetAngle]]<br>
 
[[GetHeadingAngle]]
*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.
 
*Some objects will 'forget' the X angle, setting it back to zero every few frames.
 
 
==See Also==
*[[GetAngle]]
*[[GetHeadingAngle]]
*[[Rotate]]
*[[GetPos]]
*[[SetPos]]
*[[MoveTo]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Movement Functions]]
[[Category:Movement Functions]]
[[Category:Movement Functions (GECK 1.1)]]
Anonymous user