---
name: "enableCollisionWith"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/enableCollisionWith
revid: 369423
updated: 2024-09-03T18:48:51Z
---

# enableCollisionWith

*Command · Object Manipulation · Arma 3 v0.50*

Locality: arguments **local** · effect **global**

## Description

Cancels the effects of [disableCollisionWith](../commands/disableCollisionWith.md). 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

```sqf
vehicle1 enableCollisionWith vehicle2
```

**Parameters:**

- `vehicle1`: [Object](../topics/Object.md)
- `vehicle2`: [Object](../topics/Object.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
[_veh1, _veh2] remoteExecCall ["enableCollisionWith", 0, _veh1];
```

## See also

[collisionDisabledWith](../commands/collisionDisabledWith.md) · [disableCollisionWith](../commands/disableCollisionWith.md)

<sub>Source: [BI Community Wiki — enableCollisionWith](https://community.bistudio.com/wiki/enableCollisionWith) (revision 369423).</sub>
