Warning: file_put_contents(/ff_275c59832ee12e37caefd36d742acb249ec5457aac0ad24d.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