Model
self:get_position
Shared
Retrieves the current world-space position of the model in 3D world-space
Syntax
local position = self:get_position()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | position | 3D world-space position of the model as {x, y, z} |
Examples
local entity = model.create("character")
local position = entity:get_position()
engine.print("info", "Entity position:", position[1], position[2], position[3])