Context
This command should be called between calls to AddStage and CloseStage.
Syntax
SetStageTime( time_limit );
Game.SetStageTime( time_limit )
- time_limit: The amount of time (in seconds) to set the stage timer to.
Examples
SelectMission("m1");
...
AddStage();
SetStageTime(60); // Sets the stage timer to 60 seconds for this stage.
AddObjective("dummy");
CloseObjective();
CloseStage();
CloseMission();
Game.SelectMission("m1");
...
Game.AddStage();
Game.SetStageTime(60); -- Sets the stage timer to 60 seconds for this stage.
Game.AddObjective("dummy");
Game.CloseObjective();
Game.CloseStage();
Game.CloseMission();
Notes
It is recommended that you use a timeout condition with SetStageTime. However, this is not required; if the player runs out of time without a timeout condition, then the timer will simply disappear with no consequence.