getPlayerScores: Difference between revisions
Lou Montana (talk | contribs) (Add side changing issue note) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 13: | Line 13: | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
|r1= [[Array]] of [[Number]] | |r1= [[Array]] with [killsInfantry , killsSoft, killsArmor, killsAir, score] | ||
* killsInfantry: [[Number]] - number of infantry units killed | |||
* killsSoft: [[Number]] - number of soft vehicles killed | |||
* killsArmor: [[Number]] - number of armored vehicles killed | |||
* killsAir: [[Number]] - number of air vehicles killed | |||
* score: [[Number]] - total score | |||
|x1= <sqf> | |x1= <sqf> | ||
Revision as of 09:04, 1 January 2026
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.
- Groups:
- Multiplayer
Syntax
- Syntax:
- getPlayerScores unitName
- Parameters:
- unitName: Object
- Return Value:
- Array with [killsInfantry , killsSoft, killsArmor, killsAir, score]
Examples
- Example 1:
- 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.
Only post proven facts here! Add Note