setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
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|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|eff= global|Multiplayer Effects=
|eff= global


|arg= global|Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Damage / repair object.
| Damage / repair object.
Line 15: Line 15:
Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>
Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>


Alias of [[setDamage]], which was introduced to fix a spelling error in this operator's name. |DESCRIPTION=
Alias of [[setDamage]], which was introduced to fix a spelling error in this operator's name.


| object [[setDammage]] damage |SYNTAX=
| object [[setDammage]] damage


|p1= object: [[Object]] |PARAMETER1=
|p1= object: [[Object]]


|p2= damage: [[Number]] |PARAMETER2=
|p2= damage: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_soldier1 [[setDammage]] 1;</code> |EXAMPLE1=
|x1= <code>_soldier1 [[setDammage]] 1;</code>


| [[setDamage]], [[setVehicleArmor]], [[damage]], [[getDammage]], [[setHit]], [[getHit]], [[getHitIndex]], [[setHitIndex]], [[getHitPointDamage]], [[setHitPointDamage]] |SEEALSO=
| [[setDamage]], [[setVehicleArmor]], [[damage]], [[getDammage]], [[setHit]], [[getHit]], [[getHitIndex]], [[setHitIndex]], [[getHitPointDamage]], [[setHitPointDamage]]
}}
}}



Revision as of 11:10, 18 January 2021

Hover & click on the images for description

Description

Description:
Damage / repair object. Damage 0 means fully functional, damage 1 means completely destroyed / dead.
Alias of setDamage, which was introduced to fix a spelling error in this operator's name.
Groups:
Object Manipulation

Syntax

Syntax:
object setDammage damage
Parameters:
object: Object
damage: Number
Return Value:
Nothing

Examples

Example 1:
_soldier1 setDammage 1;

Additional Information

See also:
setDamagesetVehicleArmordamagegetDammagesetHitgetHitgetHitIndexsetHitIndexgetHitPointDamagesetHitPointDamage

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

Posted on April 17, 2006‎ - 07:39 (CEST)
Fragorl
In OFP, setting a unit's damage to a negative value will set it is health to full, but impair their aim.