- Documentation
- Server events
- onElementDimensionChange
Event
onElementDimensionChange
An element moved to another dimension.
Handler
addEventHandler("onElementDimensionChange", root, function(oldDimension, newDimension) ... end)Parameters
oldDimensionint- Old dimension.
newDimensionint- New dimension.
Source
source is the element.
Example
addEventHandler("onElementDimensionChange", root, function(old, new)
if getElementType(source) == "player" then outputChatBox("Wymiar " .. new, source) end
end)