Mark the current mission as complete and start a new level in a campaign...
Syntax
loadLevel(level);
Parameters
Parameter
Type
Mandatory
Notes
Game Version
level
String
The level to load, as defined in the campaign data. For more information see Creating a Mission.
3.1 Beta 1
Return value
Does not return anything.
Notes
This function is used to indicate a successful mission and then progress to the next mission in a campaign.
When the function is called, a game results screen will be shown similar to if you had called gameOverMessage(). The user is given the opportunity to save the game, and can then "Continue" to progress to the specified level. The new level will then be loaded in to a fresh script environment.