Zorkaz Posted April 3, 2022 Share Posted April 3, 2022 I forgot how to script advance time properly, has anyone a template left over? Link to comment Share on other sites More sharing options...
DieFeM Posted April 3, 2022 Share Posted April 3, 2022 Bool Function PassGameTimeHours(Int iHours) Global Game.FadeOutGame(true, true, 0.0, 2.5) GlobalVariable GameHour = Game.GetFormFromFile(0x00000038, "Fallout4.esm") As GlobalVariable Int i = iHours While i > 0 GameHour.Mod(1.0) Utility.Wait(2.5/iHours) i -= 1 EndWhile Return True EndFunction It passes hour by hour to make sure timer events are triggered. Is intended to take 2 and half seconds to advance the given total hours (iHours), but it uses to take a bit more depending on the script load at each given time. Link to comment Share on other sites More sharing options...
Zorkaz Posted April 3, 2022 Author Share Posted April 3, 2022 :cool: Link to comment Share on other sites More sharing options...
Recommended Posts