Jump to content

[Script] Advance Time


Zorkaz

Recommended Posts

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...