Warning: file_put_contents(/ff_4584e9b1ed73ec9b2a363801bf69e709416992b2973c4925.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setHitPointDamage - OFPEC Scripting Command Reference | OFPEC The Editing Center

unitName setHitPointDamage [hitPointName, damage]

Operand types

unitName: Object
[hitPointName, damage]: Array

Type of returned value

Description

Set the current level of damage for a specific Hit Point (specified by its config class).
0 means no damage, 1 is full damage.

Used In

Arma3

Example

(vehicle player) setHitPointDamage ["hitEngine2", 1];

player setHitPointDamage ["hitHands", 0.5];

Advertisement