addPlayerScores: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.62 | |1.62 | ||
|serverExec= server | |serverExec= server | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|gr2= Multiplayer | |gr2= Multiplayer | ||
| MP server only: Adds player score. | | MP server only: Adds player score. | ||
| unit [[addPlayerScores]] values | | unit [[addPlayerScores]] values | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= values: [[Array]] - killsInfantry , killsSoft, killsArmor, killsAir, killed | |p2= values: [[Array]] - killsInfantry , killsSoft, killsArmor, killsAir, killed | ||
| Nothing | | Nothing | ||
|x1= <code>[[player]] [[addPlayerScores]] [0, 1, 0, 0, 1];</code> | |x1= <code>[[player]] [[addPlayerScores]] [0, 1, 0, 0, 1];</code> | ||
| [[addScore]], [[addScoreSide]], [[getPlayerScores]], [[score]], [[scoreSide]] | | [[addScore]], [[addScoreSide]], [[getPlayerScores]], [[score]], [[scoreSide]] | ||
}} | }} |
Revision as of 00:00, 18 January 2021
Description
- Description:
- MP server only: Adds player score.
- Groups:
- Object ManipulationMultiplayer
Syntax
- Syntax:
- unit addPlayerScores values
- Parameters:
- unit: Object
- values: Array - killsInfantry , killsSoft, killsArmor, killsAir, killed
- Return Value:
- Nothing
Examples
- Example 1:
player addPlayerScores [0, 1, 0, 0, 1];
Additional Information
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
Bottom Section
- Posted on May 2, 2017 - 01:48 (UTC)
- 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.