I found "void RestartGame(playergroup playerGroup)" through the search function, unfortunately I have no idea how to utilize this. what should I change in the script to restart the game for all active players?
How would this be hard in anyway?. Resetting the variable values to default, placing units back to default positions, etc etc...I mean..really simple stuff.
I found "void RestartGame(playergroup playerGroup)" through the search function, unfortunately I have no idea how to utilize this. what should I change in the script to restart the game for all active players?
It doesn't work in multiplayer anyway.
@RileyStarcraft: Go
Ouch, what would you suggest I do instead then? Make a huge fkn trigger which resets everything? Or is there a smarter method? :p
Yep - or tell them to re-host.
@s3rius: Go
I'm gonna go with the latter then, thx guys :)
@piepgras: Go
How would this be hard in anyway?. Resetting the variable values to default, placing units back to default positions, etc etc...I mean..really simple stuff.
@EternalWraith: Go
It could be a hassle depending on the number of custom variables that need to be returned to default (and their variations).
@Twinmold20: Go
Voila. Could do that for unittype and unit owner, too.
@s3rius: Go
Don't even know why I posted that part.
Well in theory all you would have to do is run your initialization trigger, given that you've written it in a somewhat sane manner.