BIS fnc setHitPointDamage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.68 | |||
|1.68 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets damage to HitPoint with dependency or not. | |descr= Sets damage to HitPoint with dependency or not. | ||
| [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]] | |s1= [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]] | ||
|p1= object: [[Object]] - | |p1= object: [[Object]] - entity to which damage applies | ||
|p2= hitPoint: [[String]] - | |p2= hitPoint: [[String]] - hitPoint to which damage applies | ||
|p3= damage: [[Number]] - | |p3= damage: [[Number]] - amount of damage to apply | ||
|p4= useDependency (Optional, default [[true]]) | |p4= useDependency: [[Boolean]] - (Optional, default [[true]]) | ||
* [[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 | ||
Line 23: | Line 22: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[player, "HitFace", 0.9] call BIS_fnc_setHitPointDamage;</sqf> | ||
|seealso= [[setHitPointDamage]] | |seealso= [[setHitPointDamage]] | ||
}} | }} | ||
Latest revision as of 01:59, 1 August 2022
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: Boolean - (Optional, default true)
- Return Value:
- Nothing
Examples
- Example 1:
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