collisionDisabledWith: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
mNo edit summary
 
Line 14: Line 14:
|p1= obj: [[Object]] - given object
|p1= obj: [[Object]] - given object


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

Latest revision as of 04:08, 28 September 2023

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