Arma 3 Scripting

Command in Object Manipulation

setHitIndex

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets the current level of damage for a specific Hit Point. All hit points can be obtained with getAllHitPointsDamage command.

Syntax

vehicle setHitIndex [hitPartIndex, damage, useEffects, killer, instigator, breakRotor]

Parameters:

Returns: Nothing

Examples

Example 1

vehicle player setHitIndex [1, 1];

Example 2

player setHitIndex [7, 0.5];

See also

getAllHitPointsDamage · getHitIndex · getHitPointDamage · setHitPointDamage · setHit · getHit · setDamage · damage · forceHitPointsDamageSync