SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje wspólne
  3. getElementsWithinColShape

Funkcja

getElementsWithinColShape

Serwer i klientElementyIdentyczna z MTA:SA

Zwraca elementy w strefie kolizji, opcjonalnie tylko jednego typu.

Składnia

table getElementsWithinColShape(colshape theShape [, string elemType = nil])

Argumenty

theShapecolshape
Strefa.
elemTypestring, opcjonalny = nil
Typ elementów.

Zwraca

Tablica elementów.

Przykład

local zone = createColSphere(2495, -1687, 13, 30)
addCommandHandler("obecni", function(player)
    outputChatBox("Na Grove: " .. #getElementsWithinColShape(zone, "player"), player)
end)

Zobacz też