Entity::setCollision: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(2 intermediate revisions by one other user not shown)
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
** Setting 'toggle' to false will disable all collisions and you will fall through the world.
*'''keepPhysics:''' Boolean
*'''keepPhysics:''' Boolean
===Return value===
===Return value===
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 17:54, 1 May 2024

Syntax

entity.setCollision(toggle, keepPhysics);

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

// todo

See also