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
SetDurationTime( time );Game.SetDurationTime( time )- 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
Mods can use the Additional Script Functionality hack to replace this command with one that supports decimal numbers.
See SetDurationTime for details on that hack's implementation.