- Dokumentacja
- Zdarzenia serwera
- onElementInteriorChange
Zdarzenie
onElementInteriorChange
Element przeszedł do innego wnętrza.
Obsługa
addEventHandler("onElementInteriorChange", root, function(oldInterior, newInterior) ... end)Parametry
oldInteriorint- Stare wnętrze.
newInteriorint- Nowe wnętrze.
Źródło
source to element.
Przykład
addEventHandler("onElementInteriorChange", root, function(old, new)
if getElementType(source) == "player" and new == 0 then outputChatBox("Jesteś na zewnątrz", source) end
end)