setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added note)
m (Fix)
 
(67 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Damage / repair object. Damages or repairs the object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. This function is identical to [[setDamage]]. [[setDamage]] was introduced to fix a spelling error in this operator's name. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| object '''setDammage''' damage |= Syntax
|game4= arma2
|version4= 1.00


|p1= object: [[Object]] |= Parameter 1
|game5= arma2oa
|version5= 1.50


|p2= damage: [[Number]] |= Parameter 2
|game6= tkoh
|version6= 1.00


| [[Nothing]] |= Return value
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <pre>soldier1 setDammage 1</pre> |= Example 1
____________________________________________________________________________________________


| [[setDamage]], [[damage]], [[getDammage]] |= See also
|eff= global


}}
|arg= global
 
|gr1= Object Manipulation


<h3 style="display:none">Notes</h3>
|alias= [[setDamage]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate"></dd>
|descr= Entirely identical to [[setDamage]] that was introduced to fix a typographical error in the command's name.
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
{{Feature|informative|See [[setDamage]] for this command's documentation.}}
<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.


In '''ArmA''', setting a unit's damage to a negative value will increase it's hitpoints. Note the unit may still be killed by receiving above a certain amount of damage to specific component (eg, headshot will still kill a soldier).</dd>
|s1= -


|r1= -


<!-- Note Section END -->
|x1= -
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setDamage]]
[[Category:Scripting Commands|SETDAMMAGE]]
}}
[[Category:Scripting Commands OFP 1.96|SETDAMMAGE]]
 
[[Category:Scripting Commands OFP 1.46|SETDAMMAGE]]
{{Note
[[Category:Scripting Commands ArmA|SETDAMMAGE]]
|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.
}}

Latest revision as of 01: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.