GetEntityPos
An entity’s position and heading.
Syntax
Section titled “Syntax”GetEntityPos(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number, number, number, number - x, y, z, yaw in metres and degrees; nil when there is no such entity
Example
Section titled “Example”local x, y, z, yaw = GetEntityPos(horse)if x then SetPlayerPos(pid, x + 1.5, y, z, yaw) endSee also
Section titled “See also”SetEntityPos · GetPlayerPos · the World entities group of the index
