setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
Line 7: Line 7:


|eff= global|Multiplayer Effects=
|eff= global|Multiplayer Effects=
|arg= global|Multiplayer Arguments=
|arg= global|Multiplayer Arguments=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 17: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= object: [[Object]] |PARAMETER1=
|p1= object: [[Object]] |PARAMETER1=
|p2= damage: [[Number]] |PARAMETER2=
|p2= damage: [[Number]] |PARAMETER2=


Line 29: Line 31:


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


Line 36: Line 37:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">
<dd class="notedate">Posted on April 17, 2006‎ - 07:39 (CEST)</dd>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dt class="note">[[User:Fragorl|Fragorl]]
<dd class="note">In '''OFP''', setting a unit's damage to a negative value will set it's health to full, but impair their aim.
<dd class="note">In '''OFP''', setting a unit's damage to a negative value will set it's health to full, but impair their aim.


<!-- Note Section END -->
<!-- Note Section END -->
Line 45: Line 45:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETDAMMAGE]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETDAMMAGE]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|SETDAMMAGE]]
[[Category:Scripting Commands ArmA|SETDAMMAGE]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Notes: Improper Formatting|{{uc:{{PAGENAME}}}}]]

Revision as of 22:28, 19 November 2019

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:
Uncategorised

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's health to full, but impair their aim.

Bottom Section