Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /*
  2. Name: sirens
  3. Description: Everything required to get the lightbar to work
  4. Author: Tisor for A3L
  5. */
  6.  
  7. diag_log "SIRENS WORKING";
  8. private["_vcl"];
  9.  
  10. _vcl = _this;
  11.  
  12.  
  13. while {alive _vcl} do {
  14.  
  15.  
  16. if (!isNull driver _vcl && _vcl animationPhase "ani_siren" > 0 && getdammage _vcl < 0.7 ) then {
  17. _phase = _vcl animationPhase "ani_siren";
  18. _phase = _phase * 10;
  19. _phase = round _phase;
  20.  
  21. switch (_phase) do {
  22. case (2): {
  23. _vcl say3D "Siren1";
  24. sleep 5.964;
  25. };
  26.  
  27. case (4): {
  28. _vcl say3D "Siren2";
  29. sleep 5.191;
  30. };
  31.  
  32. case (6): {
  33. _vcl say3D "Siren3";
  34. sleep 3.668;
  35. };
  36.  
  37. };
  38.  
  39. } else {
  40. waitUntil {sleep 2; (_vcl animationPhase "ani_siren" > 0 && getdammage _vcl < 0.7 )};
  41. };
  42. };
  43.  
  44. exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement