Skip to content

GetEntityPos

An entity’s position and heading.

GetEntityPos(id)
Parameter Type
id number the entity

number, number, number, number - x, y, z, yaw in metres and degrees; nil when there is no such entity

local x, y, z, yaw = GetEntityPos(horse)
if x then SetPlayerPos(pid, x + 1.5, y, z, yaw) end

SetEntityPos · GetPlayerPos · the World entities group of the index