allowDammage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| ofp | | ofp | ||
|1.00 | |1.00 | ||
|arg= local |MPARGUMENTS= | |arg= local |MPARGUMENTS= | ||
Line 9: | Line 9: | ||
|eff= global |MPEFFECTS= | |eff= global |MPEFFECTS= | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| 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> | ||
The command does not prevent object from taking scripted damage such as [[setDamage]] or [[setHit]].<br> | The command does not prevent object from taking scripted damage such as [[setDamage]] or [[setHit]].<br> | ||
{{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.}} | If object changes locality, the command needs to be executed again on the new [[owner]]'s machine to maintain the effect.}} | ||
| object [[allowDammage]] allow | | object [[allowDammage]] allow | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= allow: [[Boolean]] | |p2= allow: [[Boolean]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[allowDammage]] [[false]];</code> | |x1= <code>[[player]] [[allowDammage]] [[false]];</code> | ||
| [[setDammage]], [[getDammage]] [[allowDamage]] [[damage]] [[setDamage]] | | [[setDammage]], [[getDammage]] [[allowDamage]] [[damage]] [[setDamage]] | ||
}} | }} | ||
Revision as of 00:02, 18 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