WaitGameTime - Utility

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Utility Script

Pauses the script for at least the specified amount of game time. This function is latent.

Syntax[edit | edit source]

Function WaitGameTime(float afHours) native global

Parameters[edit | edit source]

  • afHours: How long to wait, in game hours.

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Pause our currently running stack for 1 1/2 in-game hours
Utility.WaitGameTime(1.5)

Notes[edit | edit source]

  • The total wait time may longer in certain cases where the game clock jumps ahead by a large amount (i.e. fast travel).
  • A wait time of 0 won't actually wait, and just return immediately

See Also[edit | edit source]