Model

self:set_position

Shared

Sets the local position of the model

Syntax

local status = self:set_position(
    position
)

Parameters

TypeNameDescription
vector3positionPosition to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_position({0, 0, 0})

On this page