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

Funkcja

getElementColShape

SerwerElementyIdentyczna z MTA:SA

Zwraca strefę kolizji przypisaną do znacznika albo pickupa.

Składnia

colshape getElementColShape(element theElement)

Argumenty

theElementelement
Znacznik albo pickup.

Zwraca

Strefa albo false.

Przykład

local shape = getElementColShape(marker)
if shape then
    outputServerLog("W znaczniku: " .. #getElementsWithinColShape(shape, "player"))
end

Zobacz też