Special Variables

From the Fallout3 GECK Wiki
Revision as of 10:53, 25 May 2007 by imported>Jduvall (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Link to TES4 Construction Set Wiki: Special Variables

Only changes, additions, or deletions are described here.

Globals

Type Name Description
float GameDaysPassed Days that have passed since the beginning of the game

Notes

  • Remember that an hour is about 0.041667 (1/24) of a day. So using GameDaysPassed for anything other than day tracking may get awkward.
  • If all you want to know is if it is a new day (strictly meaning that the 12:00am boundary has been crossed), save the current GameDaysPassed into a SHORT variable (lastDay) and then when you want to do your comparison, create a SHORT (currentDay) and set it to the current GameDaysPassed. If (currentDay - lastDay) >= 1, then a day has passed. By storing GameDaysPassed in SHORT variables you trim off the factional hours that live in the decimal places. If you use floats instead of SHORTs you will essentially be checking if "24 hours has passed" rather than, "is it the next day."

Locals

No known/documented changes.