isDamageAllowed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=")
m (Text replacement - "\|" to "|")
Line 17: Line 17:
|p1= object: [[Object]]
|p1= object: [[Object]]


\|r1= [[Boolean]]
|r1= [[Boolean]]


\|x1= <code>[[private]] _canBeDamaged = [[local]] _obj && [[isDamageAllowed]] _obj;</code>
|x1= <code>[[private]] _canBeDamaged = [[local]] _obj && [[isDamageAllowed]] _obj;</code>


| [[allowDamage]], [[setDamage]], [[setHit]]
| [[allowDamage]], [[setDamage]], [[setHit]]

Revision as of 11:32, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Multiplayer:
This command only works locally. It always returns false when called on non local objects
Groups:
Object Manipulation

Syntax

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

Examples

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

Additional Information

See also:
See also needed

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