BIS fnc setHitPointDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|PARAMETER1= |p3=" to "|PARAMETER2= |p3=")
m (Remove arma3dev)
Line 3: Line 3:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|1.67|Game version=
|1.68|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets damage to HitPoint with dependency or not (Optional)  |DESCRIPTION=
| 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 |PARAMETER2=
|p3= damage:  [[Number]] - Amount of damage to apply |PARAMETER3=


|p3= useDependency (Optional): [[Boolean]]
|p4= useDependency (Optional, default [[true]]): [[Boolean]]
* [[true]] (Default) - distribute damage to dependent HitPoints as well
* [[true]] - distribute damage to dependent HitPoints as well
* [[false]] - apply damage to given HitPoint only |PARAMETER1=
* [[false]] - apply damage to given HitPoint only |PARAMETER4=


| [[Nothing]]|RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|[[setHitPointDamage]] |SEEALSO=
| [[setHitPointDamage]] |SEEALSO=
 
}}
}}



Revision as of 21:53, 24 March 2020


Hover & click on the images for description

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

Notes

Bottom Section