- Dokumentacja
- Funkcje klienta
- isElementCollidableWith
Funkcja
isElementCollidableWith
Sprawdza, czy dwa elementy mogą się zderzyć.
Składnia
bool isElementCollidableWith(element theElement, element withElement)Argumenty
theElementelement- Pierwszy element.
withElementelement- Drugi element.
Zwraca
true, jeśli mogą się zderzyć.
Przykład
if not isElementCollidableWith(localPlayer, ghostCar) then
outputChatBox("Przenikasz przez auto-ducha.")
end