Background for Skyrim SE
Member of the Utility script
voidfunctionWait(floatafSeconds)NativeGlobal

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

  • This function is often used to wait until a currently-open menu is closed, by waiting for a small amount of time (eg 0.001 or so).
    • Crafting menus, conversations, and certain other IU "menus" do not count as menus for this purpose, since they do not pause the game. See Utility.IsInMenuMode() for alternative detection methods.
  • Wait time isn't precise, based on framerate and general Papyrus system workload.
  • A wait time of 0 won't actually wait (??? check: even if in a menu?), and will just return immediately.

There is a veritable plethora of ways that scripts, actors and the PC may wait. These include:


Parameters

floatafSeconds

CK Wiki Description

How long to wait, in real-time seconds.


Examples

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

Auto-Generated Example

float myFloat__afSeconds

Utility.Wait(myFloat__afSeconds)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.