{"name":"setPhysicsCollisionFlag","operator":null,"title":"setPhysicsCollisionFlag","type":"command","url":"https://community.bistudio.com/wiki/setPhysicsCollisionFlag","revid":373888,"updated":"2025-06-26T10:59:15Z","groups":["PhysX"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Sets physics collision flags for PhysX and geometry LODs. Roadway LOD interactions remain.\n\nFor 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.\n\n> [!NOTE]\n> Use the allLODs 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).","syntaxes":[{"syntax":"object setPhysicsCollisionFlag value","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"},{"name":"value","type":"Boolean","optional":false,"default":null,"description":"true to enable collision, false to disable it","types":["Boolean"],"since":null,"text":"value: Boolean - true to enable collision, false to disable it"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"object","types":["Object"]},"right":{"text":"value","types":["Boolean"]}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":["hideObject","isObjectHidden","getPhysicsCollisionFlag","disableCollisionWith","enableCollisionWith"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: PhysX","Introduced with Arma 3 version 2.18","Scripting Commands","Scripting Commands: Local Effect"]}