This command should be called between calls to AddStage and CloseStage.
SetStageTime( time_limit );
Game.SetStageTime( time_limit )
- time_limit: The amount of time (in seconds) to set the stage timer to.
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();
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.