BIS fnc setHitPointDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - " |s1=[" to " |s1= [")
Line 8: Line 8:
|descr= Sets damage to HitPoint with dependency or not.
|descr= Sets damage to HitPoint with dependency or not.


|s1=[object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]]
|s1= [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]]


|p1= object: [[Object]] - Entity to which damage applies
|p1= object: [[Object]] - Entity to which damage applies

Revision as of 00:11, 13 July 2022

Hover & click on the images for description

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
  • true - 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