M MY Multiplayer: Wiki
Side
Kind

setElementRotation

Shared

Sets an element's 3D rotation in degrees.

bool setElementRotation(element element, float x, y, z)

Parameters

NameTypeDescription
elementelementThe element.
x, y, zfloatRotation 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)

See also