isDamageAllowed: Difference between revisions
Jump to navigation
Jump to search
m (description) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Introduced in game= | | arma3 |Introduced in game= | ||
Line 11: | Line 10: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| A getter for [[allowDamage]] command. The command indicates if damage is allowed at current [[local]]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'''.|DESCRIPTION= | | A getter for [[allowDamage]] command. The command indicates if damage is allowed at current [[local]]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'''.|DESCRIPTION= | ||
| [[isDamageAllowed]] object |SYNTAX= | | [[isDamageAllowed]] object |SYNTAX= | ||
Line 23: | Line 20: | ||
|x1= <code>[[private]] _canBeDamaged = [[local]] _obj && [[isDamageAllowed]] _obj;</code> |EXAMPLE1= | |x1= <code>[[private]] _canBeDamaged = [[local]] _obj && [[isDamageAllowed]] _obj;</code> |EXAMPLE1= | ||
| [[allowDamage]], [[setDamage]], [[setHit]] |SEEALSO= | | [[allowDamage]], [[setDamage]], [[setHit]] |SEEALSO= |
Revision as of 01:40, 17 January 2021
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