setElementPosition
Shared
Moves an element to a position in the world.
bool setElementPosition(element element, float x, y, z [, bool warp = true])
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element. |
| x, y, z | float | The new position. |
| warp | bool | Treat the change as a jump: on a client, the element and what is attached to it leave no motion blur between the old and the new position.default true |
Returns
true if it moved, false if the element has no position.
Example
addCommandHandler("grove", function(player)
setElementPosition(player, 2495.1, -1687.4, 13.5)
end)