getPlayerScores

From Bohemia Interactive Community
Jump to navigation Jump to search
Hover & click on the images for description

Description

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.
This command does not work (returns empty array) if the unit's side has been changed (e.g c[player] joinSilent createGroup east).
Groups:
Multiplayer

Syntax

Syntax:
getPlayerScores unitName
Parameters:
unitName: Object
Return Value:
Array of Numbers - the score of the given player in format [infantry kills, soft vehicle kills, armor kills, air kills, deaths, total score]

Examples

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

Additional Information

See also:
score addScore scoreSide addScoreSide addPlayerScores

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note