setDamage: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.5|= Game version | |||
____________________________________________________________________________________________ | |||
| Damage / repair object. Damages or repairs the object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. See also [[getDammage]] | |||
Note: This function is identical to [[setDammage]]. It was introduced to fix a spelling error in original function name. Note: Setting a unit's damage to a negative value will set their health to full, but impair their aim. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | object '''setDamage''' damage |= Syntax | ||
|p1= object: [[Object]] |= Parameter 1 | |||
|p2= damage: [[Number]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>soldier1 setDamage 1</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|SETDAMAGE]] | |||
[[Category:Scripting Commands OFP 1.96|SETDAMAGE]] | |||
[[Category:Scripting Commands ArmA|SETDAMAGE]] | |||
Revision as of 23:09, 1 August 2006
Description
- Description:
- Damage / repair object. Damages or repairs the object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. See also getDammage Note: This function is identical to setDammage. It was introduced to fix a spelling error in original function name. Note: Setting a unit's damage to a negative value will set their health to full, but impair their aim.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
soldier1 setDamage 1
Additional Information
- See also:
- See also needed
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