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

Entity::setCollision

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

Syntax

<syntaxhighlight lang="javascript">entity.setCollision(toggle, keepPhysics);</syntaxhighlight>

Required Arguments

  • toggle: Boolean
    • Setting 'toggle' to false will disable all collisions and you will fall through the world.
  • keepPhysics: Boolean

Return value

  • Undefined

Example

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

See also