When I create a unit with CreateUnitHPR, how can I get the army it belongs to? I'm fine with the army name string such as ARMY_1 or the army index integer.
Been looking for over half an hour now and getting quite frustrated with how obscure the API is
For reference, after not realizing I had made dumb capitalization mistake and writing getArmy instead of GetArmy and spending an hour searching for an alternative, I found that unit:GetAIBrain().Name will give me the army name (ie ARMY_1).