Hello,
I've been able to override a function just fine, but I would like to know what the function does.
The specific function I'm referencing is OkayToMessWithArmy
I've searched around and found it referenced here: https://github.com/FAForever/fa/blob/de ... ne/Sim.lua
but that doesn't list the actual code; I've tried searching within the gamedata folder, but all the zipped lua files in there only reference the function and don't actually contain it.
The end result I'm trying to achieve is to update the "SharedArmies" mod so it works; I've gotten to where it transfers the units to the 'team leader', and sets the army focus to that players, but every attempt to do something states the player is "trying to cheat." (allowing cheats makes it work, but I don't want that)
Originally the mod used the ArmyGetHandicap function to allow another player to control the army, but that function seems to no longer take 3 arguments- there original code was like this "pcall(ArmyGetHandicap, army - 1, CommandSources[player] - 1, allowControl) ";
I'm hoping that if I can see the OkayToMessWithArmy code, that i'll be able to see if there is some variable or something that I can set to authorize one player to control another players units.
Any help or advice would be appreciated.
Thanks,
Zav