Page MenuHomeFeedback Tracker

getPlayerScores does not respect player side when player switches groups.
New, NormalPublic

Description

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.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create a default mission with one unit of player side west.
  2. getPlayerScores properly reports [0,0,0,0,0,0,0,0].
  3. Via script, create a new group of side east, and join the player to this group.
  4. getPlayerScores now reports [].
  5. Create an enemy infantry unit, kill said unit.
  6. getPlayerScores still reports [].
  7. Via script, create a new group of side west, and join the player to this group.
  8. getPlayerScores now reports [1,0,0,0,0,0,0,0].

Event Timeline

Ryko created this task.Nov 17 2020, 8:25 PM