Arma 3 Scripting

addPlayerScores

  • Server only
  • Arma 3 v1.62

Command · also in Multiplayer · Markdown · JSON · original wiki page

Description

MP server only: Adds player score.

Kill Type infantry soft armor air killed
Score Points 1 2 3 5 -1

Syntax

unit addPlayerScores values

Parameters:

Returns: Nothing

Examples

Example 1

player addPlayerScores [0, 1, 0, 0, 1];

See also

addScore · addScoreSide · getPlayerScores · score · scoreSide

Community notes

Beno 83au

As this command will add the given number to a player's score, a little bit of thought needs to be given to friendly-fire if it is for something like a deathmatch or a FFA, due to friendly-fire incurring negative points. So to counter this just add 2 points every time a player kills a unit from the same side:

player addPlayerScores [2, 0, 0, 0, 0];

The 2 points will add 1 point to counter the negative friendly-fire point and 1 point to add correctly to the score.