Перейти к содержанию

Entity::hasCollidedWithAnything

Материал из RAGE MP Wiki Archive

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

<syntaxhighlight lang="javascript">entity.hasCollidedWithAnything();</syntaxhighlight>

Required Arguments

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also