Difference between revisions of "Talk:Wait - Utility"
Jump to navigation
Jump to search
no edit summary
imported>Catwheezle (That big list of ways to wait for stuff) |
imported>BrotherBob |
||
Line 24: | Line 24: | ||
Should the big list actually be a disambiguation page? --[[User:Catwheezle|Catwheezle]] 01:25, 16 February 2012 (EST) | Should the big list actually be a disambiguation page? --[[User:Catwheezle|Catwheezle]] 01:25, 16 February 2012 (EST) | ||
==Pauses the script?== | |||
As it reads now, the first sentence is: "Pauses the script for at least the specified amount of real-world time." The fact is that this just isn't exactly true. Whether intended or not, the statement implies that the function temporarily stops the script from doing anything at all. I mean, if I wrote a script like: | |||
<source lang="papyrus"> | |||
Event OnInit() | |||
RegisterForSingleUpdate(10) | |||
Utility.Wait(5) | |||
Debug.Notification("5 seconds have passed.") | |||
endEvent | |||
Event OnUpdate() | |||
Debug.Notification("10 seconds have passed.") | |||
endEvent | |||
</source> | |||
after 5 seconds, I'd get the first notification, and 5 seconds later, I'd get the other notification. Perhaps, the sentence should be rewritten to this effect because it appears to me that the function seems to only stop what is going on in the event/function in which it is located. --[[User:BrotherBob|BrotherBob]] ([[User talk:BrotherBob|talk]]) 2013-11-17T12:37:04 (EST) |