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

Zdarzenie

onColShapeHit

SerwerStrefy kolizjiIdentyczne z MTA:SA

Element wszedł do strefy kolizji.

Obsługa

addEventHandler("onColShapeHit", root, function(hitElement, matchingDimension) ... end)

Parametry

hitElementelement
Element.
matchingDimensionbool
Czy jest w tym samym wymiarze.

Źródło

source to strefa.

Przykład

local zone = createColCircle(2495, -1687, 25)
addEventHandler("onColShapeHit", zone, function(el, dim)
    if dim and getElementType(el) == "player" then outputChatBox("Witaj na Grove Street", el) end
end)

Zobacz też