WaitMenuMode - Utility

Revision as of 20:37, 11 February 2018 by imported>Qazaaq (added category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

SyntaxEdit

Function WaitMenuMode(float afSeconds) Native Global

ParametersEdit

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

Return ValueEdit

None

ExamplesEdit

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

NotesEdit

  • 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 AlsoEdit