SetGameHour

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Provides a safe and convenient way to set the GameHour global and/or advance game time, without the risk of corrupting the other game time globals.

Syntax

[help]
SetGameHour gameHour:float

Example

SetGameHour 13

Sets the current game hour to 1pm.

SetGameHour 104

Advances 4 days and sets the current game hour to 8am (24 * 4 + 8).

Bugs

  • This function can freeze or crash the game if the user's TimeScale global value is changed to anything other than the default value of 30.

See Also

  • ToggleHardcoreTracking - to prevent the player from dying from the Hardcore Needs buildup that might happen after using this function.