{"name":"enableCollisionWith","title":"enableCollisionWith","type":"command","url":"https://community.bistudio.com/wiki/enableCollisionWith","revid":379339,"updated":"2026-10-30T23:53:22Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"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","params":[{"name":"vehicle1","type":"Object","type_expr":"Object"},{"name":"vehicle2","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle1"},"right":{"text":"vehicle2"}}],"examples":[{"code":["[_veh1, _veh2] remoteExecCall [\"enableCollisionWith\", 0, _veh1];"]}],"see_also":["collisionDisabledWith","disableCollisionWith"],"notes":[{"user":"Ranwer","date":"2015-04-05T00:13:00Z","text":"**enableCollisionWith** is a script that when you apply it to an object, it will be solid and the player will not be able to go through it. However, if you want your unit to go through it, you may want to use the **disableCollisionWith** command. An example for this is:\n\n```sqf\n//name of unit in editor such as player1\n//name of object in editor such as car1\n\ncar1 enableCollisionWith player1;\n\n//to make your unit go through the car, use the below and make sure you know what your doing!\n\ncar1 disableCollisionWith player1;\n```\n\nBoth commands **enableCollisionWith** and **disableCollisionWith**, are very handy codes and could be used for example: map testing, mission editing and even animation cutscenes."}]}