Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. private ["_car","_lightR1","_lightR2","_lightB1","_lightB2","_lightW1","_lightW2"];
  2. _car = _this select 0;
  3. if(isServer and isDedicated)exitWith{};
  4. while{!(alive _car)}do{sleep 1;};
  5. for [{_a=0},{_a < 1},{_a=_a}] do
  6. {
  7. waitUntil {_car animationPhase "BeaconsStart" > 0};
  8.  
  9. _lightB1 = "#lightpoint" createVehicleLocal getpos ( _car );
  10. _lightB1 attachTo [_car,[0,0,0],"pollights_pos"];
  11. _lightB1 setLightBrightness 0.4;
  12. _lightB1 setLightAmbient[ 0.0, 0.0, 0.1 ];
  13. _lightB1 setLightColor[ 0, 0, 1 ];
  14. _lightB1 setLightAttenuation[20,4,4,0];
  15. sleep 0.5;
  16. deleteVehicle _lightB1;
  17.  
  18.  
  19.  
  20. _lightR1 = "#lightpoint" createVehicleLocal getpos ( _car );
  21. _lightR1 attachTo [_car,[0,0,0],"pollights_pos"];
  22. _lightR1 setLightBrightness 0.4;
  23. _lightR1 setLightAmbient[ 0.1, 0.0, 0.0 ];
  24. _lightR1 setLightColor[ 1, 0, 0 ];
  25. _lightR1 setLightAttenuation[20,4,4,0];
  26. sleep 0.5;
  27. deleteVehicle _lightR1;
  28.  
  29.  
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement