BIS fnc setHitPointDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with " {{Function|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.67|= Game version ____________...")
Line 3: Line 3:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3dev |= Game name


|1.00|= Game version
|1.67|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| Sets damage to HitPoint with dependency or not (Optional)  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setHitPointDamage]]; --> |= Syntax
| [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]]; |= Syntax
|p1= |= Parameter 1


| |= Return value
|p1= object: [[Object]] - Entity to which damage applies |= Parameter 1
|p2= hitPoint: [[String]] - HitPoint to which damage applies |= Parameter 1
|p3= damage:  [[Number]] - Amount of damage to apply |= Parameter 1
|p3= useDependency (Optional):  [[Boolean]]
* [[true]] (Default) - distribute damage to dependent HitPoints as well
* [[false]] - apply damage to given HitPoint only |= Parameter 1
 
| [[Nothing]]|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[player, "HitFace", 0.9] [[call]] [[BIS_fnc_setHitPointDamage]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
|[[setHitPointDamage]] |= See also


}}
}}

Revision as of 11:39, 2 March 2017


-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.67|1.67]]
Hover & click on the images for description

Description

Description:
Sets damage to HitPoint with dependency or not (Optional)
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
useDependency (Optional): Boolean
  • true (Default) - distribute damage to dependent HitPoints as well
  • false - apply damage to given HitPoint only
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

[[Category:Introduced with arma3dev version 1.67]][[ Category: arma3dev: New Functions | BIS FNC SETHITPOINTDAMAGE]][[ Category: arma3dev: Functions | BIS FNC SETHITPOINTDAMAGE]]

Notes

Bottom Section