Entity::setRotation

From RAGE Multiplayer Wiki
Revision as of 23:42, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

rotationOrder refers to the order yaw pitch roll is applied
value ranges from 0 to 5. What you use for rotationOrder when setting must be the same as rotationOrder when getting the rotation.
Unsure what value corresponds to what rotation order, more testing will be needed for that.
For the most part R* uses 1 or 2 as the order.
p5 is usually set as true

Syntax

entity.setRotation(pitch, roll, yaw, rotationOrder, p5);

Required Arguments

  • pitch: float
  • roll: float
  • yaw: float
  • rotationOrder: int
  • p5: Boolean

Return value

  • Undefined

Example

// todo

See also