Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Objectives > "timer" Objectives > SetDurationTime

SetDurationTime

Context

This command should be called between calls to AddObjective and CloseObjective.

Additionally, it must be a timer objective.

Syntax

AddStage();
	AddObjective("timer");
		SetDurationTime( time );
	CloseObjective();
CloseStage();

Game.AddStage()
	Game.AddObjective("timer")
		Game.SetDurationTime( time )
	Game.CloseObjective()
Game.CloseStage()

  • time: The duration (in seconds) that the stage should last.

Examples

AddStage();

	AddObjective("timer");
	
		// This stage will complete after 5 seconds have passed.
		SetDurationTime(5);
	
	CloseObjective();

CloseStage();

Game.AddStage()

	Game.AddObjective("timer")
		
		-- This stage will complete after 5 seconds have passed.
		Game.SetDurationTime(5)
	
	Game.CloseObjective()

Game.CloseStage()

Notes

This command is modified by the Additional Script Functionality hack to have expanded functionality.

See Modified Commands for more information.

Donut Team © 2024 · v4.0