WLF Posted May 5, 2019 Report Share Posted May 5, 2019 _t1 = diag_tickTime; systemChat str _t1; _t2 = _t1 + 5; systemChat str _t2; waitUntil {diag_tickTime >= _t2}; systemChat "End script"; Why I have error? Error in expression <hat str _t2; waitUntil {diag_tickTime >= _t2}; systemChat "End script"> Error position: <>= _t2}; systemChat "End script"> Error Generic error in expression Link to comment Share on other sites More sharing options...
0 RedLink Posted May 6, 2019 Report Share Posted May 6, 2019 Show your full code Link to comment Share on other sites More sharing options...
0 WLF Posted May 6, 2019 Author Report Share Posted May 6, 2019 56 minutes ago, RedLink said: Show your full code This is all the code. I run it in the "test.sqf" in the @ebayShopper's TestKit admin tool. Link to comment Share on other sites More sharing options...
0 He-Man Posted May 7, 2019 Report Share Posted May 7, 2019 You can not use waituntil in an unsheduled Script. Because that you get an error here. Link to comment Share on other sites More sharing options...
0 WLF Posted May 8, 2019 Author Report Share Posted May 8, 2019 12 hours ago, He-Man said: You can not use waituntil in an unsheduled Script. Because that you get an error here. How can I pause that test script? Link to comment Share on other sites More sharing options...
0 He-Man Posted May 8, 2019 Report Share Posted May 8, 2019 Spawn a "new" script and add your code there. For example: [] spawn {mycode}; Link to comment Share on other sites More sharing options...
Question
WLF
_t1 = diag_tickTime; systemChat str _t1; _t2 = _t1 + 5; systemChat str _t2; waitUntil {diag_tickTime >= _t2}; systemChat "End script";
Why I have error?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now