I thought it would be a matter of code; sleep(); code. But this doesn't work.
I thought it would be a matter of code; sleep(); code. But this doesn't work.
See sleep command in the Biki
you need to specify the sleep period in seconds
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">blablabla...
sleep 10
/*sleeps for 10 seconds*/
blablabla[/QUOTE]
Whisper / Kalbuth / MrK
ex-OFrP member.
OFCRA lurker : OFCRA www
Planetside 2 / Tribes Ascend, member of Formido Clan
whats it do tho? is it not the same as ~6
It's ~ for functions.
--Ben
I'm making an intro for a mission, but I don't know how to delay the next camcommit.
To delay the camcommit use
~10
or ~ and the time to wait.
Editing/Modding/Scripting question? Head on over to OFPEC
I thought they changed the ~ in arma
They only changed it for functions. In the case of functions you use the sleep command. In a general script you can continue to use ~.
Hoz
Whenever I use it I get "error invalid number in expression".
Am I not supposed to use it like this: blablabla; ~10; blablabla
You should not use old style SQS scripts, executed with exec command, in ArmA. Instead you should use the new SQF scripts executed with execVM/spawn, where the sleep command must be used. The sleep command does not work in functions since it would freeze the whole game.
Look here for an example of how the script syntax has changed.