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

make an unit unavailable

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • Player - Make [Unit] Unavailable for training/construction by [Player]
I believe this works exactly the way you want it to work: the [Unit] will be invisible, you probably need to set a few of these actions at map init (to hide all units).
Then, when a player enters the code, just change "Unavailable" with "Available" and the player can create that unit.
 
Level 12
Joined
Apr 16, 2010
Messages
584
So you want a unit to be unlocked/opened when you will have password right?
If so you could use variable of type boolean; if you receive the password set boolean to true and then check if boolean is true unlock/open the unit.

Edit: oh there's a better answer above... Hmmm, didn't think of that.
 
Status
Not open for further replies.
Top