• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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