- Documentation
- Client functions
- setMeshObjectRotation
Function
setMeshObjectRotation
Rotates a model object (degrees, Z, X, Y order).
Syntax
bool setMeshObjectRotation(meshobject meshObject, float rx, ry, rz)Arguments
meshObjectmeshobject- The object.
rx, ry, rzfloat- Rotation.
Returns
true on success.
Example
addEventHandler("onClientRender", root, function()
setMeshObjectRotation(statue, 0, 0, getTickCount() / 20 % 360)
end)