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

Function

getMeshObjectRotation

ClientGame engineTrilogy Hub only

Returns a model object's rotation in degrees.

Syntax

float, float, float getMeshObjectRotation(meshobject meshObject)

Arguments

meshObjectmeshobject
The object.

Returns

rx, ry, rz.

Example

local rx, ry, rz = getMeshObjectRotation(statue)

See also