Advertisement
infiSTAR23

faster than loop?

Jan 31st, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /*
  2. by: http://infiSTAR.de || http://DayzAntiHack.com
  3. */
  4.  
  5. // this costs less fps
  6. for '_i' from 0 to 300 do
  7. {
  8. call compile ('
  9. TEST_2'+str _i+' = {
  10. hintSilent str time;
  11. sleep 0.01;
  12. terminate TEST_1'+str _i+';
  13. [] spawn TEST_3'+str _i+';
  14. };
  15. TEST_3'+str _i+' = {
  16. hintSilent str time;
  17. sleep 0.01;
  18. terminate TEST_1'+str _i+';
  19. [] spawn TEST_2'+str _i+';
  20. };
  21. TEST_1'+str _i+' = [] spawn TEST_2'+str _i+';
  22. ');
  23. };
  24.  
  25. // than this
  26. for '_i' from 0 to 100 do
  27. {
  28. [] spawn {
  29. while {1 == 1} do
  30. {
  31. hintSilent str time;
  32. sleep 0.01;
  33. };
  34. };
  35. };
  36.  
  37. // but both happens over and over again mh. so basically both are loops but the first one is not a while. however the first one will be in the missionnamespace and therefor easy to terminate by scripters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement