{"name":"isDamageAllowed","operator":null,"title":"isDamageAllowed","type":"command","url":"https://community.bistudio.com/wiki/isDamageAllowed","revid":336947,"updated":"2023-01-04T16:44:11Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.70"}],"since":{"game":"arma3","name":"Arma 3","version":"1.70"},"arma3_since":"1.70","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"A getter for allowDamage command. The command indicates if damage is allowed at current locality, hence local effect of the command.\nFor complete solution for being able to tell whether or not an object can be damaged at current locality see #Example 1.","syntaxes":[{"syntax":"isDamageAllowed object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _canBeDamaged = local _obj && isDamageAllowed _obj;\n```","code":["private _canBeDamaged = local _obj && isDamageAllowed _obj;"]}],"multiplayer":"Always returns false when called on non-local objects","problems":null,"aliases":[],"see_also":["allowDamage","setDamage","setHit"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 1.70","Scripting Commands","Scripting Commands: Local Effect"]}