- Documentation
- Shared functions
- setElementDimension
Function
setElementDimension
Moves an element to another dimension. Elements in different dimensions cannot see each other.
Syntax
bool setElementDimension(element theElement, int dimension)Arguments
theElementelement- The element.
dimensionint- Dimension 0-65535.
Returns
true on success.
Example
addCommandHandler("arena", function(player)
setElementDimension(player, 10)
setElementPosition(player, 0, 0, 5)
end)
Notes
Also works in client scripts. On the client it changes the dimension of every element, also sounds and players.