Entity::setCollision: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 2: Line 2:
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">entity.setCollision(toggle, keepPhysics);</syntaxhighlight>
<syntaxhighlight lang="javascript">entity.setCollision(toggle, keepPhysics);</syntaxhighlight>
* Setting 'toggle' to false will disable all collisions and you will fall through the world.
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean

Revision as of 11:45, 25 February 2018

Syntax

entity.setCollision(toggle, keepPhysics);
  • Setting 'toggle' to false will disable all collisions and you will fall through the world.

Required Arguments

  • toggle: Boolean
  • keepPhysics: Boolean

Return value

  • Undefined

Example

// todo

See also