Nadin Posted August 5, 2010 Share Posted August 5, 2010 First, how do I set up a timer? That is to say, how do I set it up so that a script will complete a portion of the script, and then wait until a certain amount of time has passed since the script was triggered to continue?Second, is it possible to have a script call what weather is currently active?Third, can a script change the current weather? Link to comment Share on other sites More sharing options...
pkleiss Posted August 5, 2010 Share Posted August 5, 2010 A staged timer would use two blocks. So as an example: ScriptName StagedTimerScript Short Stage Float Timer Begin OnTriggerEnter Player Set Timer to 10 Set Stage to 1 End Begin GameMode If Timer > 0 Set Timer to Timer - GetSecondsPassed ElseIf Stage == 1 ;Do Stuff Set Timer to 3 Set Stage to 2 ElseIf Stage == 2 ;Do Stuff Set Stage to 3 EndIf End You can control the weather with commands like GetIsCurrentWeather, ForceWeather, GetIsCloudy, etc... Link to comment Share on other sites More sharing options...
Nadin Posted August 5, 2010 Author Share Posted August 5, 2010 Marvelous! Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts