Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Games
  • Radical Entertainment
  • The Simpsons: Hit & Run
  • Scripting
  • Mission Conditions

timeout

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

Examples

MFK
Lua
AddStage();
	SetStageTime(10);

	AddObjective("dummy");
	CloseObjective();

	// Fail the player if they take longer than 10 seconds on this stage
	AddCondition("timeout");
	CloseCondition();
CloseStage();
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

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