• 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.

Random models?

Status
Not open for further replies.
Level 1
Joined
May 9, 2017
Messages
3
Hey everyone

I'm a newbie map maker and i'm working on a really cool td-like map.
I wanted to make my "castle" (more like a tavern) spit out workers, but every time the model of a worker is different. I want to have a limit of 4 workers too. Could you help me with both of those things?

Thanks in advance!
 
Level 12
Joined
Dec 11, 2014
Messages
665
You'll need to create 4 units, all with different models. Store them in a unit-type variable and when creating the unit use a random number from 1-4 and increase a number that will keep track of how many units have already been trained. Before creating a unit check if they have less than 4.
 
Level 1
Joined
May 9, 2017
Messages
3
You'll need to create 4 units, all with different models. Store them in a unit-type variable and when creating the unit use a random number from 1-4 and increase a number that will keep track of how many units have already been trained. Before creating a unit check if they have less than 4.

Well...
I created the units, but i have a problem with doing the rest :hohum:
 
Status
Not open for further replies.
Top