This command closes a mission that was being initialised.
Context
This command should be called in a mission's initialisation script (mXsdi.mfk, mXi.mfk, srXi.mfk, bm1i.mfk or gr1i.mfk).
Additionally, this must be preceded by a call to SelectMission, SetMissionResetPlayerInCar or SetMissionResetPlayerOutCar, a call to SetDynaLoadData and at least one stage.
Syntax
CloseMission();
Game.CloseMission()
Examples
// This is the bare minimum required for a mission to function
SelectMission("m1");
SetMissionResetPlayerOutCar("level1_homer_start","level1_carstart");
SetDynaLoadData("l1z1.p3d;l1r1.p3d;l1r7.p3d;");
AddStage();
AddObjective("dummy");
CloseObjective();
CloseStage();
CloseMission();
-- This is the bare minimum required for a mission to function
Game.SelectMission("m1");
Game.SetMissionResetPlayerOutCar("level1_homer_start","level1_carstart")
Game.SetDynaLoadData("l1z1.p3d;l1r1.p3d;l1r7.p3d;")
Game.AddStage()
Game.AddObjective("dummy")
Game.CloseObjective()
Game.CloseStage()
Game.CloseMission()
Notes
No additional notes.