Warcraft III resources & community, 2003–2006 · archived

I could use some help :D

3 posts
#1

I could use some help :D

most of you might have heard this question alot but i need help limiting 1 unit per player so when i select a new unit it replaces the unit i have and gives me the other one
#2
uh just make a unit variable array each array being the player number and do like
Event: A unit is trained(or w/e)
Conditions:
Actions: remove playersunit[player number of owner of (triggering unit)] from the game
set playersunit[player number of owner of (triggering unit)] = last trained unit(or w/e)

ya...so basically you build a footman and it doesnt remove any unit because there is no other but it sets that footman into the variable. the next unit you train be it a rifleman or w/e it will remove the footman and set the rifleman to the variable..
#3
ok thanks ill give it a try