Skip to main content

Entity::hasCollidedWithAnything

Called on tick.
Tested with vehicles, returns true whenever the vehicle is touching any entity.

Note: for vehicles, the wheels can touch the ground and it will still return false, but if the body of the vehicle touches the ground, it will return true.

Syntax​

entity.hasCollidedWithAnything();

Return value​

  • Boolean

Example​

// todo