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 system is great because all you need to do is define Point A (Pos of Unit A) and Point B (Pos of Unit B) and the Width. Then from there the system will add all of the found units to a Unit Group.
Then you want to create a Boolean "FoundUnit" and set it to False before you loop through the Unit Group. After that you would check each Picked unit in the Unit Group -> If picked unit is NOT equal to Unit A or Unit B then set FoundUnit = True. You'd probably want to filter out dead units and other stuff as well.
After the Pick every unit function you check the state of FoundUnit. If it's still False then you didn't find any units between Unit A and Unit B and can proceed to do whatever it is that you wanted to do.
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.