Ande -> RE: Find the HQ (4/22/2011 12:32:57 AM)
|
Ah, thanks alot. If I only could write it in a more familiar way while(unit=unit.getHQ()){
supremeHQ=unit;
} I would be very happy. If I knew how to format the script inside the scenariofile i could probably write the compiler myself. Anyway, enough with the ramblings. In order find the supreme HQ I need to loop through the whole map, looking for units of the current regeme and then count which supreme HQ has the most subunits? If the tempvar is a number referencing to a unit in some sort of list, is it possible to access this list directly? ie, loop through every unit in the unitlist and do the checks directly. It would be even better if the list was regeme specific allowing me to completly do without the regemecheck
|
|
|
|