- Dokumentacja
- Zdarzenia serwera
- onElementColShapeHit
Zdarzenie
onElementColShapeHit
Element wszedł do strefy kolizji (wersja od strony elementu).
Obsługa
addEventHandler("onElementColShapeHit", root, function(theShape, matchingDimension) ... end)Parametry
theShapecolshape- Strefa.
matchingDimensionbool- Czy w tym samym wymiarze.
Źródło
source to element.
Przykład
addEventHandler("onElementColShapeHit", root, function(shape, dim)
if getElementType(source) == "vehicle" and dim then setElementData(source, "wStrefie", true) end
end)