enableCollisionWith
- Local argument
- Global effect
- Arma 3 v0.50
Command · Markdown · JSON · original wiki page
Description
Cancels the effects of disableCollisionWith. The collision is always enabled for both objects in the arguments, i.e. vehicle1 with vehicle2 and vehicle2 with vehicle1
Warning
Each object can contain only 1 reference to the object it disabled collision with. This command sets this reference to null. Therefore the command might not work as expected when trying to enable collisions with some objects but not other.
Syntax
vehicle1 enableCollisionWith vehicle2
Parameters:
Returns: Nothing
Examples
Example 1
[_veh1, _veh2] remoteExecCall ["enableCollisionWith", 0, _veh1];