---
name: "isDamageAllowed"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.70"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/isDamageAllowed
revid: 336947
updated: 2023-01-04T16:44:11Z
---

# isDamageAllowed

*Command · Object Manipulation · Arma 3 v1.70*

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

## Description

A getter for [allowDamage](../commands/allowDamage.md) command. The command indicates if damage is allowed at current [local](../commands/local.md)ity, hence local effect of the command.
For complete solution for being able to tell whether or not an object can be damaged at current locality see [#Example 1](../commands/isDamageAllowed.md#example-1).

## Syntax

```sqf
isDamageAllowed object
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
private _canBeDamaged = local _obj && isDamageAllowed _obj;
```

## Multiplayer

Always returns [false](../commands/false.md) when called on non-local objects

## See also

[allowDamage](../commands/allowDamage.md) · [setDamage](../commands/setDamage.md) · [setHit](../commands/setHit.md)

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