Arma 3 Scripting

Command in Object Manipulation

getHitIndex

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

Description

Return current level of damage for a specific Hit Point (specified by its hit part index). All hit points can be obtained with getAllHitPointsDamage command.

Syntax

vehicle getHitIndex hitPartIndex

Parameters:

Returns: Number - before Arma 3 v1.94, Nothing was returned when an invalid selection was provided (now returns 0)

Examples

Example 1

vehicle player getHitIndex 3;

See also

getAllHitPointsDamage · setHitIndex · setHitPointDamage · getHitPointDamage · setHit · getHit · setDamage · damage