setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - ">Posted on April ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-04-$1")
(Add setDamage alias and redirection)
Line 28: Line 28:
|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= Damages/hurts or repairs/heals object/unit. Damage 0 means fully functional, damage 1 means completely destroyed / dead. {{Feature|Warning|Do '''not''' use this command. Use [[setDamage]] instead!}}
|alias= [[setDamage]]


|s1= object [[setDammage]] damage
|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.}}


|p1= object: [[Object]]
|s1= -
 
|p2= damage: [[Number]]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>_soldier1 setDammage 1;</sqf>
|x1= -


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


<dl class="command_description">
{{Note
 
|user= Fragorl
<dt><dt>
|timestamp= 20060417073900
<dd class="notedate">Posted on 2006-04-17 - 07:39 (CEST)</dd>
|text= In '''{{ofp}}''', setting a unit's damage to a negative value will set it is health to full, but impair their aim.
<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.
 
</dl>

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

Examples

Example 1:
-

Additional Information

See also:
setDamage setVehicleArmor damage getDammage setHit getHit getHitIndex setHitIndex getHitPointDamage setHitPointDamage

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.