setDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= arma1
|version2= 1.00
 
|game3= arma2
|version3= 1.00
 
|game4= arma2oa
|version4= 1.51
 
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50


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


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


Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>
Damage 0 means fully functional, damage 1 means completely destroyed / dead.<br>
Line 17: Line 33:
Alias of [[setDamage]], which was introduced to fix a spelling error in this operator's name.
Alias of [[setDamage]], which was introduced to fix a spelling error in this operator's name.


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


|p1= object: [[Object]]
|p1= object: [[Object]]
Line 23: Line 39:
|p2= damage: [[Number]]
|p2= damage: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>_soldier1 [[setDammage]] 1;</code>
|x1= <code>_soldier1 [[setDammage]] 1;</code>
Line 40: Line 56:
</dl>
</dl>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 14:39, 14 March 2021

Hover & click on the images for description

Description

Description:
Damage / repair object. Damage 0 means fully functional, damage 1 means completely destroyed / dead.
Alias of setDamage, which was introduced to fix a spelling error in this operator's name.
Alias:
setDamage
Groups:
Object Manipulation

Syntax

Syntax:
object setDammage damage
Parameters:
object: Object
damage: Number
Return Value:
Nothing

Examples

Example 1:
_soldier1 setDammage 1;

Additional Information

See also:
setDamagesetVehicleArmordamagegetDammagesetHitgetHitgetHitIndexsetHitIndexgetHitPointDamagesetHitPointDamage

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
Posted on April 17, 2006‎ - 07:39 (CEST)
Fragorl
In OFP, setting a unit's damage to a negative value will set it is health to full, but impair their aim.