SetAngle - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets the object's current rotation in the world.

Syntax[edit | edit source]

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

Parameters[edit | edit source]

  • 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 Value[edit | edit source]

None.

Examples[edit | edit source]

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

See Also[edit | edit source]