There is a map called 'Daybreak LE (Restart)' on battle.net which has a 'restart' button that resets the game back to the beginning without having to quit the match and make a new one.
Just wondering how easy is it to replicate this feature for other maps?
Hello, hope this is the right section to ask.
There is a map called 'Daybreak LE (Restart)' on battle.net which has a 'restart' button that resets the game back to the beginning without having to quit the match and make a new one.
Just wondering how easy is it to replicate this feature for other maps?
I'd probably just store all the units at the beginning of the map into a variable array, using the pick each unit action. It'd probably work.
Edit: It might possibly screw up any AI players.
Well, depends on whats going on. it should be kept in mine from the beginning of a project but if its hind sight good luck.
Perhaps theoretically you could terminate all scripts in the game and fire off all the map initializations.
Just destroy all the units on the map and then set the melee starting conditions again (If you are talking about a melee map).
You will have to disable the victory and defeat melee options so that the game doesn't end.