isDamageAllowed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...)
Line 5: Line 5:
|1.70|Version=
|1.70|Version=


|arg= global |MPARGUMENTS=
|arg= global


|eff= local |MPEFFECTS=
|eff= local


|gr1= Object Manipulation
|gr1= Object Manipulation
Line 23: Line 23:
| [[allowDamage]], [[setDamage]], [[setHit]]
| [[allowDamage]], [[setDamage]], [[setHit]]


|mp= This command only works locally. It always returns false when called on non local objects |MPBEHAVIOUR=
|mp= This command only works locally. It always returns false when called on non local objects
}}
}}



Revision as of 11:55, 18 January 2021

Hover & click on the images for description

Description

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.
Multiplayer:
This command only works locally. It always returns false when called on non local objects
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
private _canBeDamaged = local _obj && isDamageAllowed _obj;

Additional Information

See also:
allowDamagesetDamagesetHit

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section