Hi Jip,
Thanks a lot.
So this would explain why for example the Phantom X mod has access to the ArmyBrains global variable, because it is not a UI mod?
https://github.com/FAForever/faf-phantomx/blob/b088e4b40c808174ad9bee4ab787758349e0a8dd/lua/PhantomSim.lua#L178
Because I guess if I UI mod would have access to ArmyBrains it could influence the game simulation.
In the end what I am trying to do work out, is how to fix Hussars Scoreboard Kill notification.
https://github.com/FA-mods/SupremeScoreBoard
What broke the kill notification is basically this change in the FA Core.
https://github.com/FAForever/fa/pull/4016
Earlier the DoGameResult would receive also the score results, after the change it is only the defeat.
So the Scoreboard UI mod does not know anymore who performed a kill, it only knows an ACU was defeated, hence it always shows that a ctrl+k happened.
So I wondered how I could get access to the kills information. This is why I wanted to read out the Armybrains, because it seems this info could be extracted from there.
Cheers!