i am working on a Hero Wars remake for SC2, probably some of you know that map.
well there are continuously creeps running towards the enemy base, and in the wc3 version of that map, they ALWAYS go to the waypoint, even if theire blocked for some time, as soon as they are unblocked they keep running.
now i have my continuous stream of running "mobs" but if they get blocked they soon stop and stand still forever..
is there any way or does someone know how it could be possibly done that it checks every second and reorders them doing the last order they had?
There's a function called "Idle Units for Player" which returns a unit group. You can then pick each unit from that group and reissue the order every so often.
You can use the Issue Order to Unit Group to issue the same order to all units at one go or use the Issue Order (to a single unit) together with the Pick Each Unit in Unit Group action to issue an order to each unit by one one (so you can check their type or something else...).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hey guys.
i am working on a Hero Wars remake for SC2, probably some of you know that map.
well there are continuously creeps running towards the enemy base, and in the wc3 version of that map, they ALWAYS go to the waypoint, even if theire blocked for some time, as soon as they are unblocked they keep running.
now i have my continuous stream of running "mobs" but if they get blocked they soon stop and stand still forever..
is there any way or does someone know how it could be possibly done that it checks every second and reorders them doing the last order they had?
push!
There's a function called "Idle Units for Player" which returns a unit group. You can then pick each unit from that group and reissue the order every so often.
is it each unit individually like "unit 1; unit 2.." or "all units"?
thanks for the answer!
You can use the Issue Order to Unit Group to issue the same order to all units at one go or use the Issue Order (to a single unit) together with the Pick Each Unit in Unit Group action to issue an order to each unit by one one (so you can check their type or something else...).