SetNextScenario

Kategorie: Spieler
Ab Engineversion: 9.0 OC

Beschreibung

If you call this function in a scenario you will get an option to launch another, or the same scenario, in the scenario end screen.

Syntax

bool SetNextScenario(string scenario_name, caption string, description string);

Parameter

scenario_name:
This is the path to the scenario file that should be started next. The path is relative to the game folder. Scenario paths contain all .oc* paths and the "\" file separators have to be escaped, e.g. "Missions.ocf\\Raid.ocs".
string:
[opt] Text that is displayed on the button that launches the scenario.
string:
[opt] Description text for the button.

Anmerkung

You can call this function multiple times during the scenario, but only the last call before the game is over is binding.

Beispiele

SetNextScenario("Missions.ocf\\Raid.ocs", "Start the raid mission.", "Launches another scenario.");
Defines, that the next scenario will be the "Raid" mission.
SetNextScenario("MyScenarioFolder.ocf\\MyScenario.ocs", "Restart round.", "Start this scenario from the beginning.");
If called in "MyScenarioFolder.ocf\MyScenario.ocs" this can be used to add a retry-option to that scenario.
Siehe auch: GainScenarioAccess, GetScenarioAccess
Siehe auch: Scenario parameter definitions
Marky, 2018-04