setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Remove alias)
m (Fix)
 
(24 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|version1= 1.00
|version1= 1.00


|game2= arma1
|game2= ofpe
|version2= 1.00
|version2= 1.00


|game3= arma2
|game3= arma1
|version3= 1.00
|version3= 1.00


|game4= arma2oa
|game4= arma2
|version4= 1.51
|version4= 1.00


|game5= tkoh
|game5= arma2oa
|version5= 1.00
|version5= 1.50


|game6= arma3
|game6= tkoh
|version6= 0.50
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|eff= global
|eff= global
Line 25: Line 28:
|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= Damage / repair object.
|alias= [[setDamage]]


Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>
|descr= Entirely identical to [[setDamage]] that was introduced to fix a typographical error in the command's name.
{{Feature|informative|See [[setDamage]] for this command's documentation.}}


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


|s1= object [[setDammage]] damage
|r1= -


|p1= object: [[Object]]
|x1= -


|p2= damage: [[Number]]
|seealso= [[setDamage]]
 
}}
|r1= [[Nothing]]
 
|x1= <code>_soldier1 [[setDammage]] 1;</code>


|seealso= [[setDamage]], [[setVehicleArmor]], [[damage]], [[getDammage]], [[setHit]], [[getHit]], [[getHitIndex]], [[setHitIndex]], [[getHitPointDamage]], [[setHitPointDamage]]
{{Note
|user= Fragorl
|timestamp= 20060417073900
|text= In '''{{ofp}}''', setting a unit's damage to a negative value will set it is health to full, but impair their aim.
}}
}}
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on April 17, 2006‎ - 07:39 (CEST)</dd>
<dt class="note">[[User:Fragorl|Fragorl]]</dt>
<dd class="note">In '''OFP''', setting a unit's damage to a negative value will set it is health to full, but impair their aim.
<!-- Note Section END -->
</dl>
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:01, 7 December 2023

Hover & click on the images for description

Description

Description:
Entirely identical to setDamage that was introduced to fix a typographical error in the command's name.
See setDamage for this command's documentation.
Alias:
setDamage
Groups:
Object Manipulation

Syntax

Syntax:
-
Return Value:
-

Examples

Example 1:
-

Additional Information

See also:
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
Fragorl - c
Posted on Apr 17, 2006 - 07:39 (UTC)
In Operation Flashpoint, setting a unit's damage to a negative value will set it is health to full, but impair their aim.