GetUserTime

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns a StringMap array containing information about the time and date on the player's system.

The returned StringMap has the following key/value pairs, all of which are integers:

  • Year (1601 - 30827)
  • Month (1-12)
  • DayOfWeek (1:Sunday - 7:Saturday)
  • Day (1-31)
  • Hour (0-23)
  • Minute (0-59)
  • Second (0-59)
  • Millisecond (0-999)

Syntax

[help]
(StringMap) GetUserTime

Example

array_var UT
let UT := GetUserTime

if eval UT["Month"] == 12 && UT["Day"] == 25
    PlayerREF.AddItem Weap44MagnumRevolver, 1
    PlayerREF.AddItem Ammo44Magnum, 1
    MessageBoxEx "Happy Christmas, don't play fallout all day ;)"
endif

See Also