SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Zdarzenia serwera
  3. onElementColShapeHit

Zdarzenie

onElementColShapeHit

SerwerStrefy kolizjiIdentyczne z MTA:SA

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)

Zobacz też