Skip to content

SetEntityPos

Moves an entity.

Its controller, if any, puts the real thing there; a static prop or a loose horse is moved outright on every screen. Without yaw it keeps its heading.

SetEntityPos(id, x, y, z [, yaw])
Parameter Type
id number the entity
x number metres
y number metres
z number metres
yaw number degrees (optional)

boolean - false when there is no such entity

SetEntityPos(horse, x, y, z, 90)

GetEntityPos · MoveActor · the World entities group of the index