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!
although I'm not really sure this will work.
(it's a Unit - Issue Order with no target action)
If what you want is to limit how many units a player can train, then there is an easier way
Player - Limit training of Footman to 1 for Player 1 (Red)
it's Player - Limit Trianing of Unit type
That will allow only a number of units you set in here to be trained for selected player
---
Other options you could try could be
Hiding and immediately unhiding the building
or
Remove and immediately create new building with same health in same spot
Make a unit group variable, let's call it StopTraining
When you want the unit to stop training, add the barracks to StopTraining.
Make a new trigger.
Event: every 0.03 seconds
Conds: none
Actions:
Unit group - pick every unit in StopTraining and do actions:
Unit group - remove picked unit from StopTraining
Custom script: call IssueImmediateOrderById( GetTriggerUnit(), 851976 )
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.