M MY Multiplayer: Wiki
Side
Kind

setElementPosition

Shared

Moves an element to a position in the world.

bool setElementPosition(element element, float x, y, z [, bool warp = true])

Parameters

NameTypeDescription
elementelementThe element.
x, y, zfloatThe new position.
warpboolTreat 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)

See also