User:Rasikko

Revision as of 15:26, 31 August 2018 by imported>Scrivener07 (Created page with "== Time Functions == These are some helper functions you can use to work with time in the game. I offer three ways of starting them off, as the functions will require any of t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Time Functions

These are some helper functions you can use to work with time in the game. I offer three ways of starting them off, as the functions will require any of the three methods.

The first method is through GetCurrentGameTime - Utility. It does the same thing as the Global GameDaysPassed only a little slower.

Float daysPassed = Utility.GetCurrentGameTime()


The second method is through the global.

GlobalVariable property GameDaysPassed auto


The last method is through GetFormFromFile and pulls the global instead of making it a property. <source lang="papyrus">Float daysPassed = (Game.GetFormFromFile(0x00000039, "Fallout4.ESM") as GlobalVariable).GetValue()