Arma 3 Scripting

isDamageAllowed

  • Global argument
  • Local effect
  • Arma 3 v1.70

Command · Markdown · JSON · original wiki page

Description

A getter for allowDamage command. The command indicates if damage is allowed at current locality, 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.

Syntax

isDamageAllowed object

Parameters:

Returns: Boolean

Examples

Example 1

private _canBeDamaged = local _obj && isDamageAllowed _obj;

Multiplayer

Always returns false when called on non-local objects

See also

allowDamage · setDamage · setHit