allowDammage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| ofp |Game name= | | ofp |Game name= | ||
Line 11: | Line 10: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Allow or prevent an object being damaged (or injured, or killed). Alias of [[allowDamage]].<br> | | Allow or prevent an object being damaged (or injured, or killed). Alias of [[allowDamage]].<br> | ||
Line 17: | Line 15: | ||
{{Important | Command has to be executed where object is [[local]] and as long as object does not change locality the effect of this command will be global. | {{Important | Command has to be executed where object is [[local]] and as long as object does not change locality the effect of this command will be global. | ||
If object changes locality, the command needs to be executed again on the new [[owner]]'s machine to maintain the effect.}} |DESCRIPTION= | If object changes locality, the command needs to be executed again on the new [[owner]]'s machine to maintain the effect.}} |DESCRIPTION= | ||
| object [[allowDammage]] allow |SYNTAX= | | object [[allowDammage]] allow |SYNTAX= | ||
Line 28: | Line 25: | ||
|x1= <code>[[player]] [[allowDammage]] [[false]];</code> |EXAMPLE1= | |x1= <code>[[player]] [[allowDammage]] [[false]];</code> |EXAMPLE1= | ||
| [[setDammage]], [[getDammage]] [[allowDamage]] [[damage]] [[setDamage]] |SEEALSO= | | [[setDammage]], [[getDammage]] [[allowDamage]] [[damage]] [[setDamage]] |SEEALSO= |
Revision as of 00:06, 17 January 2021
Description
- Description:
- Allow or prevent an object being damaged (or injured, or killed). Alias of allowDamage.
The command does not prevent object from taking scripted damage such as setDamage or setHit.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object allowDammage allow
- Parameters:
- object: Object
- allow: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
player allowDammage false;
Additional Information
- See also:
- setDammagegetDammage allowDamage damage setDamage
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands