• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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
662
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