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!
Could somebody explain the use of Unit groups and how they work? I am trying to make a trigger where a bunch of units die are the condition of the trigger. How do I select units for a unit group?
For example:
Set TempUnitGroup = Units in YourTown<gen> owned by Player 1(Red)
Then for checking if every unit in that group is dead you can use:
Events -
Unit - A unit Dies
Conditions -
All units of TempUnitGroup are dead
Actions -
Set Point = (Position of (Triggering Unit))
Item - Create Reward at Point
Custom script: call RemoveLocation(udg_Point)
That create the Item Reward at the location where the last unit of that group died.
Point - a location variable
Reward - some type of item
TempUnitGroup - a unit group variable
YourTown - some region in the map (draw it using WE)
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.