Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Conditions > CloseCondition

CloseCondition

This command closes a condition added with AddCondition.

Context

This command should be called between calls to AddStage and CloseStage.

Additionally, this should only be called after a call to AddCondition.

Syntax

CloseCondition();

Game.CloseCondition()

Examples

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.SelectMission("m1")
	...

	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()
Game.CloseMission()

Notes

No additional notes.

Donut Team © 2024 · v4.0