getHitIndex

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.50
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.50

Description

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.
  • 0: no damage
  • 1: full damage

Syntax

Syntax:
vehicle getHitIndex hitPartIndex
Parameters:
vehicle : Object - vehicle to be queried
hitPartIndex: Number - hit part index of the Hit Point
Return Value:
Number or Nothing when invalid input is given

Examples

Example 1:
vehicle player getHitIndex 3;

Additional Information

Multiplayer:
-
See also:
getAllHitPointsDamagesetHitIndexsetHitPointDamagegetHitPointDamagesetHitgetHitsetDamagedamage

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section