Games > The Simpsons Hit & Run > Condition Types > Known Types > timeout

timeout

This type of condition fails the player if they run out of time in the stage.

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

This condition will immediately fail the player if the stage doesn't contain a call to SetStageTime or AddStageTime.

Donut Team © 2023 · v4.0