Entity::setCollision: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
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
*'''keepPhysics:''' Boolean
*'''keepPhysics:''' Boolean
* Setting 'toggle' to false will disable all collisions and you will fall through the world.
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Revision as of 11:45, 25 February 2018

Syntax

entity.setCollision(toggle, keepPhysics);

Required Arguments

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

Return value

  • Undefined

Example

// todo

See also