{"name":"allowDammage","title":"allowDammage","type":"command","url":"https://community.bistudio.com/wiki/allowDammage","revid":310281,"updated":"2022-05-05T13:11:25Z","groups":["Object Manipulation"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"Allow or prevent an object being damaged (or injured, or killed). The command does not prevent object from taking scripted damage such as setDamage or setHit.","syntaxes":[{"syntax":"object allowDammage allow","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"allow","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"object"},"right":{"text":"allow"}}],"examples":[{"code":["player allowDammage false;"]}],"multiplayer":"> [!IMPORTANT]\n> The command has to be executed where the object is local and will be effective as long as the object does not change locality.\n> If the object changes locality, the command needs to be executed again on the new owner's machine to maintain the effect.","problems":"This command did nothing until Arma 2.","aliases":["allowDamage"],"see_also":["setDamage","damage","allowDamage"]}