🏆 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!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
In the GUI trigger, when I change the ownership of a unit to player 1-6, the code works. However when I change the ownership to player 7-12, it crashes with a fatal error.
I have a unit which is neutral. When I use the Unit - Change Ownership of Unit to Player1 and retain color, it worked properly. However when I use Unit - Change Ownership of Unit to Player7, it crashes.
I tested and it's working properly. Its probably the trigger causing the problem. Can u post the trigger related to the unit u mentioned? (or probably more than one unit?)
Here are the images of the part where the trigger error occurs. By the way I have the exact same trigger but with different units, variable names and it works.
The whole Trigger is REALLY LONG, the concern is really in this part of the trigger. Beside, when I change the encircled part to Player 1 or 2 up to 5, even neutral, it works fine. So I believe this is the only wrong part.
Edit: when I delete the Change owner part, it works
Edit:: Never mind, I managed to fix it by not giving it to Player 7-11.
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.