Model
self:set_position
Shared
Sets the position of the model in 3D world-space
Syntax
local status = self:set_position(position)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | position | 3D world-space position to move the model to, as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local entity = model.create("character")
entity:set_position({0, 0, 0})