Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. _inc = 0;
  2. _count = 0;
  3. _targets = [pt1, pt1_1, pt1_2, pt1_3, pt1_4, pt1_5, pt1_6, pt1_7, pt1_8, pt1_9, pt1_10, pt1_11, pt1_12];
  4. _many = count _targets;
  5. {_x animate["terc",1]} forEach _targets;
  6.  
  7. hint "Welcome to Avery's Rifle Qualification Range";
  8. sleep 5;
  9. hint "Setting up the Range";
  10. sleep 3;
  11. hint "The Qualification Course will begin in 10 Seconds";
  12. sleep 2;
  13. hint "The Qualification Course will begin in 8 Seconds";
  14. sleep 2;
  15. hint "The Qualification Course will begin in 6 Seconds";
  16. sleep 2;
  17. hint "The Qualification Course will begin in 4 Seconds";
  18. sleep 2;
  19. hint "The Qualification Course will begin in 2 Seconds";
  20. sleep 2;
  21. hint "Begin!";
  22.  
  23.  
  24. while {_inc<20} do
  25. {
  26. _rnumber = floor random _many;
  27. _rtarget = _targets select _rnumber;
  28. _rtarget animate["terc", 0];
  29. sleep 6;
  30. if (_rtarget animationPhase "terc" > 0.1) then
  31. {
  32. _count = _count+1;
  33. };
  34. hint format ["Targets :%1 Hit :%2",_inc+1,_count];
  35. _rtarget animate["terc", 1];
  36. _inc = _inc + 1;
  37. };
  38. sleep 8;
  39. hint "Session Complete,";
  40.  
  41. sleep5;
  42. if (_count >= 19) then {hint "You Scored MARKSMAN";};
  43.  
  44. if (_count <= 18) then {hint "You Scored RIFLEMAN";};
  45.  
  46. if (_count <= 15) then {hint "You Scored GRUNT";};
  47.  
  48. if (_count <= 9) then {hint "You Scored TRUCK DRIVER";};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement