🏆 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 my map I'm making if you start the game and it isn't full the missing players units are still there. I have been looking in the triggers for about 15 minutes and I can't figure out how to get rid of the units in the start. help?
You firstly create a group of all the units owned by the player (in this case the player is someone who is not playing) and then enumerate through the group and remove all the units in the group (remember to destroy group afterwards or recycle it to stop leaks).
Get all players who need their units removed
itteration 1 runs for each player you identified (to be removed).
Each cycle in the itteration gets all units owned by that player and then runs itteration 2
itteration 2 runs for each unit you identified (to be removed).
each cycle removes the unit.
okay im at the variable screen and selected Player Group now I don't know how to add units to the group...and I dont know what to set those 2 variables at?!?!?
It was just an example. I really didn't put any time into making sure it was perfectly correct.
But you're right, it should be. If a user is not playing then it's units should be removed. I would also make sure that the player controller is a user (and not playing) so computer units are not removed.
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.