ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setMeshObjectRotation

Function

setMeshObjectRotation

ClientGame engineTrilogy Hub only

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)

See also