m
Move page script moved page USERAPI wait to WoW:USERAPI wait without leaving a redirect
(Created page with '{{userfunc}} <!-- Leave this line in! --> Call this function to wait a specified amount of time before running another function with the given parameters. This function is usefu...') |
m (Move page script moved page USERAPI wait to WoW:USERAPI wait without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
:;success: Boolean - '''true''' if it succeded in adding the wait to the wait table, If the first parameter is not a number, or the seconds parameter is not a function, any call to wait will automatically fail with a result of '''false'''. | :;success: Boolean - '''true''' if it succeded in adding the wait to the wait table, If the first parameter is not a number, or the seconds parameter is not a function, any call to wait will automatically fail with a result of '''false'''. | ||
NOTE: if the UIParent frame is being hidden, this wait will not work. It will never reach the end of the delay. | |||
== Example == | == Example == | ||
| Line 49: | Line 50: | ||
else | else | ||
count = count - 1; | count = count - 1; | ||
f(p); | f(unpack(p)); | ||
end | end | ||
end | end | ||
end); | end); | ||
end | end | ||
tinsert(waitTable,{delay,func,...}); | tinsert(waitTable,{delay,func,{...}}); | ||
return true; | return true; | ||
end | end | ||