• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I could use some help :D

Status
Not open for further replies.
Level 2
Joined
Dec 24, 2004
Messages
9
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
 
Level 4
Joined
Aug 11, 2005
Messages
101
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..
 
Status
Not open for further replies.
Top