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

Description

Wiki Description

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.

Documentation Comment

Waits for the specified amount of time (latent) - Timer WILL run during menu mode


Caveats

CK Wiki - Notes

  • 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 Utility.IsInMenuMode() or Utility.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.

Parameters

floatafSeconds

CK Wiki Description

How long to wait, in real-time seconds.


Examples

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

Auto-Generated Example

float myFloat__afSeconds

Utility.WaitMenuMode(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.