Advertisement
Guest User

Tavi 2.0 - Maule Prophit

a guest
Sep 18th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. kh_nearMaules = [];
  2.  
  3. // Run a script thread to check for prop hits on the kh_nearMaules list:
  4. kh_monitorNearMaules =
  5. {
  6. while { true } do
  7. {
  8. {
  9. _x call kh_checkMaule;
  10. } forEach kh_nearMaules;
  11.  
  12. if ((count kh_nearMaules) > 0) then
  13. {
  14. sleep 0.1;
  15. }
  16. else
  17. {
  18. sleep 1;
  19. };
  20. };
  21. };
  22.  
  23. [] spawn kh_monitorNearMaules;
  24.  
  25. // Update the kh_nearMaules array:
  26. while { true } do
  27. {
  28. kh_nearMaules = player nearEntities ["kh_maule", 1000];
  29.  
  30. sleep 5;
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement