SetAngle - ObjectReference

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