{"name":"enableCollisionWith","operator":null,"title":"enableCollisionWith","type":"command","url":"https://community.bistudio.com/wiki/enableCollisionWith","revid":369423,"updated":"2024-09-03T18:48:51Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"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\n\n> [!WARNING]\n> 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.","syntaxes":[{"syntax":"vehicle1 enableCollisionWith vehicle2","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle1","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle1: Object"},{"name":"vehicle2","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle2: Object"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle1","types":["Object"]},"right":{"text":"vehicle2","types":["Object"]}}],"examples":[{"text":"```sqf\n[_veh1, _veh2] remoteExecCall [\"enableCollisionWith\", 0, _veh1];\n```","code":["[_veh1, _veh2] remoteExecCall [\"enableCollisionWith\", 0, _veh1];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["collisionDisabledWith","disableCollisionWith"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 0.50","Scripting Commands","Scripting Commands: Global Effect"]}