Entity::setNoCollision: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 3: Line 3:
<syntaxhighlight lang="javascript">entity.setNoCollision(entity2, collision);</syntaxhighlight>
<syntaxhighlight lang="javascript">entity.setNoCollision(entity2, collision);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''entity2:''' Entity handle or object
*'''entity2:''' Entity handle
*'''collision:''' Boolean
*'''collision:''' Boolean
** False = no collison, true = enabled collisions
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Revision as of 20:16, 1 March 2018

Calling this function, regardless of the 'unknown' value, disabled collision between two entities.

Importance of entity1 and 2 order is unclear.

Syntax

entity.setNoCollision(entity2, collision);

Required Arguments

  • entity2: Entity handle
  • collision: Boolean
    • False = no collison, true = enabled collisions

Return value

  • Undefined

Example

// todo

See also