Arma 3 Scripting

getHitIndex

  • Global argument
  • Arma 3 v1.50

Command · Markdown · JSON · 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