Arma 3 Scripting

Command in Multiplayer

getPlayerScores

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

Description

Returns the unit's table of scores (infantry kills, soft vehicle kills, armor kills, air kills, deaths, total score) in multiplayer or an empty array in singleplayer.

Important

This command does not work (returns empty array) if the unit's side has been changed (e.g [player] joinSilent createGroup east).

Syntax

getPlayerScores unitName

Parameters:

Returns: Array with [killsInfantry, killsSoft, killsArmor, killsAir, score]

Examples

Example 1

getPlayerScores BIS_player1;    // e.g [4, 0, 3, 1, 2, 16]
                                // or in SP: []

See also

score · addScore · scoreSide · addScoreSide · addPlayerScores