Model

self:set_rotation

Shared

Sets the local rotation of the model

Syntax

local status = self:set_rotation(
    rotation
)

Parameters

TypeNameDescription
vector3rotationRotation to apply in degrees as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local rotation of a model
local entity = core.model.create("character")

entity:set_rotation({0, 25, 0})

On this page