Sets how long a timer should last.
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
SetDurationTime( time );Game.SetDurationTime( time )- time: The amount of seconds that the stage should last.
- Unlike the base game command, decimal numbers are supported.
Examples
MFK
Lua
AddStage();
AddObjective("timer");
// This stage will complete after 5.5 seconds have passed.
SetDurationTime(5.5);
CloseObjective();
CloseStage();Game.AddStage()
Game.AddObjective("timer")
-- This stage will complete after 5.5 seconds have passed.
Game.SetDurationTime(5.5)
Game.CloseObjective()
Game.CloseStage()Notes
This command replaces the base game's SetDurationTime.