• 🏆 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!

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