Page 1 of 1

[resolved]Changing level

Posted: Sun Aug 27, 2017 11:11 pm
by AqwerfNet
Hello!
How can i change the map level in survival mode, when all player died,

Code: Select all

			SetMusic("ouin");
				printbold(s:"Nobody win... >_<,Moving to the next map");
				delay(35*2);
				SetMusic("");
				log(d:nextmap);
				exit_normal(0);
				delay(35);
BUT the "mission failed" screw the level changing, so is there a way to do that correctly or not?

Re: Changing level

Posted: Mon Aug 28, 2017 12:19 pm
by Ivan
AqwerfNet wrote:Hello!
How can i change the map level in survival mode, when all player died,

Code: Select all

			SetMusic("ouin");
				printbold(s:"Nobody win... >_<,Moving to the next map");
				delay(35*2);
				SetMusic("");
				log(d:nextmap);
				exit_normal(0);
				delay(35);
BUT the "mission failed" screw the level changing, so is there a way to do that correctly or not?
Too many of the hardcoded elements of the game modes mess with stuff like this. What you can do is, set a variable to 1 when all players die, and in an open script, if this variable is 1 then change the map. You can also check the game mode status using GetGameModeState ACS function.

Re: Changing level

Posted: Mon Aug 28, 2017 1:52 pm
by AqwerfNet
Ok thanks, based on your idea, i made it works. What a shame about the hardcoded stuff !