🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
I have not created the trigger yet, I'm asking how i can stop a loop if I achieve what I wanted during. It could happen on first loop and if it does, i want it to stop. It could go all 8 times and not hit the conditions.
Pick units loops of GUI behave differently in reality. They are not doing a formal loop through the units, they actually will do a ForGroup() into a separate function, and that function is called for each unit in the group. That's why an exitwhen won't work. (it might actually give an error)
For pick unit loops, you would just use an if-then-else condition before performing any actions if you need to prevent any actions from that point on.
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.