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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean - false when there is no such entity
Example
Section titled “Example”SetEntityPos(horse, x, y, z, 90)See also
Section titled “See also”GetEntityPos · MoveActor · the World entities group of the index
