Closes a condition in a stage.
Scope
This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.
Syntax
MFK
Lua
CloseCondition();Game.CloseCondition()Examples
MFK
Lua
SelectMission("m1");
AddStage();
SetStageTime(10);
AddObjective("dummy");
CloseObjective();
// Fail the player if they take longer than 10 seconds on this stage
AddCondition("timeout");
CloseCondition();
CloseStage();
CloseMission();Game.AddStage()
Game.SetStageTime(10)
Game.AddObjective("dummy")
Game.CloseObjective()
-- Fail the player if they take longer than 10 seconds on this stage
Game.AddCondition("timeout")
Game.CloseCondition()
Game.CloseStage()Notes
No additional notes.