Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. _vehicle = _this select 0;
  2. _lightRed = [5, 0.5, 0.5];
  3. _lightBlue = [0.5, 0.5, 5];
  4.  
  5. lightleft = "#lightpoint" createVehicle getpos _vehicle;
  6. lightleft setLightColor _lightRed;
  7. lightleft setLightBrightness 0.4;
  8. lightleft setLightAmbient _lightRed;
  9. lightleft lightAttachObject [_vehicle, [-3, 0.8, 0]];
  10. lightleft setLightAttenuation [3, 0, 0, 0.6];
  11.  
  12. lightright = "#lightpoint" createVehicle getpos _vehicle;
  13. lightright setLightColor _lightBlue;
  14. lightright setLightBrightness 0.4;
  15. lightright setLightAmbient _lightBlue;
  16. lightright lightAttachObject [_vehicle, [3, 0.8, 0]];
  17. lightright setLightAttenuation [3, 0, 0, 0.6];
  18.  
  19. // playSound "AlarmCar";
  20. _leftRed = true;
  21. while{ (alive _vehicle)} do
  22. {
  23. if(_leftRed) then
  24. {
  25. _leftRed = false;
  26. lightleft setLightColor _lightRed;
  27. lightleft setLightAmbient _lightRed;
  28. lightright setLightColor _lightBlue;
  29. lightright setLightAmbient _lightBlue;
  30. playSound "AlarmCar";
  31. }
  32. else
  33. {
  34. _leftRed = true;
  35. lightleft setLightColor _lightBlue;
  36. lightleft setLightAmbient _lightBlue;
  37. lightright setLightColor _lightRed;
  38. lightright setLightAmbient _lightRed;
  39. };
  40. sleep 1;
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement