setElementRotation
Shared
Sets an element's 3D rotation in degrees.
bool setElementRotation(element element, float x, y, z)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element. |
| x, y, z | float | Rotation in degrees about each axis. |
Returns
true if it turned, false if the element has no rotation.
Example
local object = createObject("kb_bandit_u", 2495, -1687, 13.5)
setElementRotation(object, 0, 0, 90)