setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Fix)
 
(39 intermediate revisions by 2 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


|eff= global|Multiplayer Effects=
|game3= arma1
|version3= 1.00


|arg= global|Multiplayer Arguments=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Damage / repair object.
|game5= arma2oa
|version5= 1.50


Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>
|game6= tkoh
|version6= 1.00


Alias of [[setDamage]], which was introduced to fix a spelling error in this operator's name. |DESCRIPTION=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50


| object [[setDammage]] damage |SYNTAX=
|eff= global


|p1= object: [[Object]] |PARAMETER1=
|arg= global


|p2= damage: [[Number]] |PARAMETER2=
|gr1= Object Manipulation


| [[Nothing]] |RETURNVALUE=
|alias= [[setDamage]]
____________________________________________________________________________________________
 
|x1= <code>_soldier1 [[setDammage]] 1;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[setDamage]], [[setVehicleArmor]], [[damage]], [[getDammage]], [[setHit]], [[getHit]], [[getHitIndex]], [[setHitIndex]], [[getHitPointDamage]], [[setHitPointDamage]] |SEEALSO=
|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.}}
 
|s1= -


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


<dd class="notedate">Posted on April 17, 2006‎ - 07:39 (CEST)</dd>
|x1= -
<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.


<!-- Note Section END -->
|seealso= [[setDamage]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|user= Fragorl
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
|timestamp= 20060417073900
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
|text= In '''{{ofp}}''', setting a unit's damage to a negative value will set it is health to full, but impair their aim.
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{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.