BIS fnc setHitPointDamage: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "|PARAMETER1= |p3=" to "|PARAMETER2=  |p3=")  | 
				Lou Montana (talk | contribs)  m (Remove arma3dev)  | 
				||
| Line 3: | Line 3: | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
|   | | arma3 |Game name=  | ||
|1.  | |1.68|Game version=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| Sets damage to HitPoint with dependency or not   | | Sets damage to HitPoint with dependency or not. |DESCRIPTION=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| Line 14: | Line 14: | ||
|p1= object: [[Object]] - Entity to which damage applies |PARAMETER1=  | |p1= object: [[Object]] - Entity to which damage applies |PARAMETER1=  | ||
|p2= hitPoint: [[String]] - HitPoint to which damage applies |PARAMETER2=  | |p2= hitPoint: [[String]] - HitPoint to which damage applies |PARAMETER2=  | ||
|p3= damage:  [[Number]] - Amount of damage to apply |  | |p3= damage:  [[Number]] - Amount of damage to apply |PARAMETER3=  | ||
|  | |p4= useDependency (Optional, default [[true]]): [[Boolean]]  | ||
* [[true]]   | * [[true]] - distribute damage to dependent HitPoints as well  | ||
* [[false]] - apply damage to given HitPoint only |  | * [[false]] - apply damage to given HitPoint only |PARAMETER4=  | ||
| [[Nothing]]|RETURNVALUE=  | | [[Nothing]] |RETURNVALUE=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
|x1= <code><nowiki  | |x1= <code>[<nowiki/>[[player]], "HitFace", 0.9] [[call]] [[BIS_fnc_setHitPointDamage]];</code> |EXAMPLE1=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
|[[setHitPointDamage]] |SEEALSO=  | | [[setHitPointDamage]] |SEEALSO=  | ||
}}  | }}  | ||
Revision as of 20:53, 24 March 2020
 
Description
- Description:
 - Sets damage to HitPoint with dependency or not.
 - Execution:
 - call
 - Groups:
 - Uncategorised
 
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