- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I would like to know how to make a generic wait function that does exactly what it should do--waits X seconds before moving onto the next line / part of a function.
It has to be portable and bug free, and high level--I do not need to know its internals one bit.
I would like to know how to make a generic wait function that does exactly what it should do--waits X seconds before moving onto the next line / part of a function.
It has to be portable and bug free, and high level--I do not need to know its internals one bit.
JASS:
function wait takes real seconds returns nothing
…
endfunction
function foo takes nothing returns nothing
call DisplayTimedTextToPlayer(…, "Showing 'hello world' in three seconds")
call wait(3.0)
call DisplayTimedTextToPlayer(…, "hello world")
endfunction