I see that I can check if a unit is in an area, but I want to check the area and see what units are in it. Only thing I can think of is lopping thru all the units on a side and checking each one to see if it is in an area.
I'd like to see if there are more than x mobile facilities, or more than x tanks really.
this works per unit:
local u= SE_GetUnit({name='tank', guid='b87e998b-cca8-4e6d-beb0-8333cc3aeae6'})
print(u:inArea{"1","2","3"})--prints yes or no
but I want to do something more like:
local p = ScenEdit_GetReferencePoints({side="Crimson Commonwealth", area={"1","2","3"}})
print(p.unitsInArea)--no such thing