WaitMenuMode - Utility
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 be counted while the player is in a menu.
Syntax[edit | edit source]
Function WaitMenuMode(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 count the time spent in a menu
Utility.WaitMenuMode(5.0)
Notes[edit | edit source]
- The name of this utility script may be misleading: it provides a method for waiting *during* menu mode. To wait for the beginning or end of menu mode, see IsInMenuMode or Wait respectively.
- Wait time isn't precise, based on framerate and general Papyrus system workload.
- A wait time of 0 won't actually wait, and will just return immediately.