isDamageAllowed

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.70
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.70

Description

Description:
A getter for allowDamage command. The command indicates if damage is allowed at current locality, hence local effect of the command. A complete solution for being able to tell whether or not an object can be damaged at current locality looks like this: _canBeDamaged = local _obj && isDamageAllowed _obj;

Syntax

Syntax:
isDamageAllowed object
Parameters:
object: Object -
Return Value:
Boolean

Examples

Example 1:
_isGod = !isDamageAllowed player;

Additional Information

Multiplayer:
This command only works locally and must be run on all machines to have global affect.
See also:
allowDamagesetDamagesetHit

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section