Wait - 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 time. This function is latent. Time will not be counted while the player is in a menu.

Syntax[edit | edit source]

Function Wait(float afSeconds) native global

Parameters[edit | edit source]

  • afSeconds: How long to wait, in real-time seconds.

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Pause our currently running stack for 5 seconds - and do not count the time spent in a menu
Utility.Wait(5)

Notes[edit | edit source]

  • Wait time isn't precise, based on framerate and general Papyrus system workload
  • A wait time of 0 won't actually wait, and just return immediately
  • The time will be affected by the global time modifier. So if, for example, VATS fires off and slows down time, it will affect these calls as well.

See Also[edit | edit source]