Vital.sandbox
Model

self:set_position

Shared

Sets the position of the model in 3D world-space


Syntax

local status = self:set_position(position)

Parameters

TypeNameDescription
vector3position3D world-space position to move the model to, as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Move a model to the world origin
local entity = model.create("character")

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

On this page