SetAngle - ObjectReference

Revision as of 14:46, 14 October 2014 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Sets the object's current rotation in the world.

SyntaxEdit

Function SetAngle(float afXAngle, float afYAngle, float afZAngle) native

ParametersEdit

  • afXAngle: Rotation around the X axis, in degrees.
  • afYAngle: Rotation around the Y axis, in degrees.
  • afZAngle: Rotation around the Z axis, in degrees.

Return ValueEdit

None.

ExamplesEdit

; Set the statue to be facing the other way (180 around X)
StatueProperty.SetAngle(180.0, 0.0, 0.0)

See AlsoEdit