BIS fnc setHitPointDamage: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN -->  <!-- Note Section END --> </dl> " to "")  | 
				Lou Montana (talk | contribs)  m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)  | 
				||
| Line 1: | Line 1: | ||
{{Function  | {{Function  | ||
| arma3   | | arma3  | ||
|1.68  | |1.68  | ||
|gr1 = Object Manipulation   | |gr1 = Object Manipulation  | ||
| Sets damage to HitPoint with dependency or not.   | | Sets damage to HitPoint with dependency or not.  | ||
| [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]]   | | [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]]  | ||
|p1= object: [[Object]] - Entity to which damage applies   | |p1= object: [[Object]] - Entity to which damage applies  | ||
|p2= hitPoint: [[String]] - HitPoint to which damage applies   | |p2= hitPoint: [[String]] - HitPoint to which damage applies  | ||
|p3= damage:  [[Number]] - Amount of damage to apply   | |p3= damage:  [[Number]] - Amount of damage to apply  | ||
|p4= useDependency (Optional, default [[true]]): [[Boolean]]  | |p4= useDependency (Optional, default [[true]]): [[Boolean]]  | ||
* [[true]] - distribute damage to dependent HitPoints as well  | * [[true]] - distribute damage to dependent HitPoints as well  | ||
* [[false]] - apply damage to given HitPoint only   | * [[false]] - apply damage to given HitPoint only  | ||
| [[Nothing]]   | | [[Nothing]]  | ||
|x1= <code>[<nowiki/>[[player]], "HitFace", 0.9] [[call]] [[BIS_fnc_setHitPointDamage]];</code>   | |x1= <code>[<nowiki/>[[player]], "HitFace", 0.9] [[call]] [[BIS_fnc_setHitPointDamage]];</code>  | ||
| [[setHitPointDamage]]   | | [[setHitPointDamage]]  | ||
}}  | }}  | ||
Revision as of 23:48, 17 January 2021
Description
- Description:
 - Sets damage to HitPoint with dependency or not.
 - Execution:
 - call
 - Groups:
 - Object Manipulation
 
Syntax
- Syntax:
 - [object, hitPoint, damage, useDependency] call BIS_fnc_setHitPointDamage
 - Parameters:
 - object: Object - Entity to which damage applies
 - hitPoint: String - HitPoint to which damage applies
 - damage: Number - Amount of damage to apply
 - useDependency (Optional, default true): Boolean
 - Return Value:
 - Nothing
 
Examples
- Example 1:
 [player, "HitFace", 0.9] call BIS_fnc_setHitPointDamage;
Additional Information
- See also:
 - 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