The getPlayerScores command is a useful and reliable way to determine units and vehicles killed or destroyed by the player, moreso than the killed eventHandler.
However, when the player changes into a group that is not the group by which the player joined the mission, getPlayerScores returns [] instead of the expected array of 8 values.
The values are still maintained and even accumulate new values properly; when the player joins back to a group of the player's initial side, getPlayerScores returns accurate information.
I would prefer that getPlayerScores reports the information correctly regardless of the player's group's side.