BIS fnc setHitPointDamage: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported: BIS Functions update 2/7) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets damage to HitPoint with dependency or not (Optional) |= | | Sets damage to HitPoint with dependency or not (Optional) |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]] |= | | [object, hitPoint, damage, useDependency] call [[BIS_fnc_setHitPointDamage]] |SYNTAX= | ||
|p1= object: [[Object]] - Entity to which damage applies |= | |p1= object: [[Object]] - Entity to which damage applies |PARAMETER1= | ||
|p2= hitPoint: [[String]] - HitPoint to which damage applies |= | |p2= hitPoint: [[String]] - HitPoint to which damage applies |PARAMETER1= | ||
|p3= damage: [[Number]] - Amount of damage to apply |= | |p3= damage: [[Number]] - Amount of damage to apply |PARAMETER1= | ||
|p3= useDependency (Optional): [[Boolean]] | |p3= useDependency (Optional): [[Boolean]] | ||
* [[true]] (Default) - distribute damage to dependent HitPoints as well | * [[true]] (Default) - distribute damage to dependent HitPoints as well | ||
* [[false]] - apply damage to given HitPoint only |= | * [[false]] - apply damage to given HitPoint only |PARAMETER1= | ||
| [[Nothing]]|= | | [[Nothing]]|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 26: | Line 26: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[setHitPointDamage]] |= | |[[setHitPointDamage]] |SEEALSO= | ||
}} | }} |
Revision as of 14:33, 7 April 2019
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
- 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]]