collisionDisabledWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.08 |branch= dev |arg= global |gr1= Object Manipulation |descr= Returns the object, given object has collision disabled with an...")
 
m (Some wiki formatting)
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|branch= dev


|arg= global
|arg= global
Line 11: Line 10:
|descr= Returns the object, given object has collision disabled with and whether or not returned object has also collision disabled with given object.
|descr= Returns the object, given object has collision disabled with and whether or not returned object has also collision disabled with given object.


|s1= [[collisionDisabledWith]] object1
|s1= [[collisionDisabledWith]] obj


|p1= object1: [[Object]] - given object
|p1= obj: [[Object]] - given object


|r1= [[Array]] - in format [object2, mutual], where:<br>
|r1= [[Array]] - in format [other, mutual], where:
* object2: [[Object]] - the object, <tt>object1</tt> has collision disabled with, or [[objNull]]
* other: [[Object]] - the object, ''obj'' has collision disabled with, or [[objNull]]
* mutual: [[Boolean]] - [[true]] if <tt>object2</tt> has also disabled collision with <tt>object1</tt>, [[false]] otherwise
* mutual: [[Boolean]] - [[true]] if ''other'' has also disabled collision with ''obj'', [[false]] otherwise


|x1= <code>_collisionInfo = [[collisionDisabledWith]] _tank;</code>
|x1= <sqf>private _collisionInfo = collisionDisabledWith _tank;</sqf>


|seealso= [[disableCollisionWith]], [[enableCollisionWith]]
|seealso= [[disableCollisionWith]] [[enableCollisionWith]]
}}
}}

Revision as of 13:47, 3 May 2022

Hover & click on the images for description

Description

Description:
Returns the object, given object has collision disabled with and whether or not returned object has also collision disabled with given object.
Groups:
Object Manipulation

Syntax

Syntax:
collisionDisabledWith obj
Parameters:
obj: Object - given object
Return Value:
Array - in format [other, mutual], where:
  • other: Object - the object, obj has collision disabled with, or objNull
  • mutual: Boolean - true if other has also disabled collision with obj, false otherwise

Examples

Example 1:
private _collisionInfo = collisionDisabledWith _tank;

Additional Information

See also:
disableCollisionWith enableCollisionWith

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note