---
name: "setPhysicsCollisionFlag"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "2.18"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setPhysicsCollisionFlag
revid: 373888
updated: 2025-06-26T10:59:15Z
---

# setPhysicsCollisionFlag

*Command · PhysX · Arma 3 v2.18*

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

## Description

Sets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.

For example, if collision is disabled for a house, it is now possible to walk through its walls but still possible to walk on its floors.

> [!NOTE]
> Use the [allLODs](../commands/allLODs.md) command to check if an object has a roadway LOD (normally, if an object is intended to be walkable, it does have a roadway LOD).

## Syntax

```sqf
object setPhysicsCollisionFlag value
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `value`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to enable collision, [false](../commands/false.md) to disable it

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

## See also

[hideObject](../commands/hideObject.md) · [isObjectHidden](../commands/isObjectHidden.md) · [getPhysicsCollisionFlag](../commands/getPhysicsCollisionFlag.md) · [disableCollisionWith](../commands/disableCollisionWith.md) · [enableCollisionWith](../commands/enableCollisionWith.md)

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