Difference between revisions of "WaitMenuMode - Utility"
Jump to navigation
Jump to search
imported>Plplecuyer (→Notes) |
imported>Qazaaq (added category) |
||
Line 1: | Line 1: | ||
'''Member of:''' [[Utility Script]] | '''Member of:''' [[Utility Script]] | ||
Line 8: | Line 5: | ||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Function WaitMenuMode(float afSeconds) | Function WaitMenuMode(float afSeconds) Native Global | ||
</source> | </source> | ||
Line 31: | Line 28: | ||
*[[Utility Script]] | *[[Utility Script]] | ||
*[[Wait - Utility]] | *[[Wait - Utility]] | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Latent Functions]] | |||
[[Category:User Interface]] |
Latest revision as of 20:37, 11 February 2018
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)
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.