| 07-17-2004, 11:38 AM | #1 |
Would it be something like TownCountDone(UNIT, GetNearestEnemy()) And if its right could you replace GetNearestENemy with an actual player e.g. Player 1 |
| 07-18-2004, 02:17 PM | #2 |
I guess you are talking about AI. native GetPlayerUnitTypeCount takes player p, integer unitid returns integer Player(0) is the first player. If you are using AMAI here then you have to translate the internal id to the 4-letter-code with old_id or by using the respective other constant by putting an o before the name. So it would look like that: GetPlayerUnitTypeCount(Player(3), old_id[NECRO]) or GetPlayerUnitTypeCount(Player(3), oNECRO) |
| 07-18-2004, 03:05 PM | #3 |
Great, thanx again andy. |
