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

How to add starting delay to units?

Status
Not open for further replies.
Level 18
Joined
Jun 2, 2009
Messages
1,233
Edit: I have solved by myself with upgrade system. I am adding upgrade as requirement and i am making upgrade available anytime i want.

Hello everyone. I want to add units to starting delay before players can train them.

Example: You will see x unit within barracks with specific cooldown. And you cannot train it until it's cooldown expires.
 
Last edited:
First make training of your unit unavailable for the building you want. Then you add an ability with the same description as your unit to the building and set its cooldown to whatever number you want. Start a timer with the duration of the cooldown that when it expires it removes the ability and makes training of your unit available for that building.
 
Level 18
Joined
Jun 2, 2009
Messages
1,233
First make training of your unit unavailable for the building you want. Then you add an ability with the same description as your unit to the building and set its cooldown to whatever number you want. Start a timer with the duration of the cooldown that when it expires it removes the ability and makes training of your unit available for that building.

Thanks for your help but i was solved it by myself in different way (check the post). Thank you my friend.
 
Status
Not open for further replies.
Top