Random models?

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 11
Joined
Dec 11, 2014
Messages
642
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:
 
Top