HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TownCount of other players

07-17-2004, 11:38 AM#1
Strategy Master
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
AIAndy
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
Strategy Master
Great, thanx again andy.