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!
This might not be the best solution but,
replace the building that's constructing the unit with the same type of building. This mgiht work for canceling all the units but not a single unit.
Edit: You could use variables for the units that are being constructing and somehow make the replaced unit rebuild them. If you want ot cancel single units
If you're using that code in a trigger that fires on the Unit Starts Training event, you need to wait a bit before running that code because technically the unit has not yet started training at the time the trigger fires. Start a one-shot timer that times out in 0.03 seconds and once it times out, issue the order.
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.