The following commands stop working correctly after the unit’s side is changed using joinSilent createGroup:
After a side change, getPlayerScores returns an empty array, and both score‑modifying commands fail silently.
Expected behavior
All three commands should work independently of the unit’s current side.
Actual behavior
If the unit’s side has been changed, the score container becomes inaccessible and the commands fail.
Impact
This breaks any game mode where players temporarily change side:
Mission makers are forced to use a workaround:
_s = side _player
[_player] joinSilent createGroup [FFA_LOBYSIDE,true]
_scores = getPlayerScores _player
[_player] joinSilent createGroup [_s,true]
This causes group recreation, AI relationship resets, visual artifacts, and race conditions.
Requested fix
Remove the dependency on unit side for:
getPlayerScores
addScore
addPlayerScores
Score data should be bound to unit or UID, not to side.