- Documentation
- Client functions
- isElementCollidableWith
Function
isElementCollidableWith
Checks whether two elements can collide.
Syntax
bool isElementCollidableWith(element theElement, element withElement)Arguments
theElementelement- The first element.
withElementelement- The second element.
Returns
true if they can collide.
Example
if not isElementCollidableWith(localPlayer, ghostCar) then
outputChatBox("Przenikasz przez auto-ducha.")
end