Arma 3 Scripting

Command in Object Manipulation

getHit

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

Description

Returns selection damage. Same as getHitPointDamage, only the argument is selection part instead of hit point.

Note

Some part names are in Czech; see the translation table.

Syntax

vehicle getHit selection

Parameters:

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

Examples

Example 1

hint str (player getHit "head");

Example 2

private _engineDamage = _car getHit "motor";

See also

setHit · getHitPointDamage · setHitPointDamage · setDamage · damage · getHitIndex · setHitIndex