New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One little request police siren #416

Open
ucaninek69 opened this Issue Jun 27, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@ucaninek69

ucaninek69 commented Jun 27, 2016

please do ıt ı try this code vehicle = _this select 0;
_lightRed = [5, 0.5, 0.5];
_lightBlue = [0.5, 0.5, 5];

lightleft = "#lightpoint" createVehicle getpos _vehicle;  
lightleft setLightColor _lightRed;
lightleft setLightBrightness 0.4; 
lightleft setLightAmbient _lightRed;
lightleft lightAttachObject [_vehicle, [-3, 0.8, 0]]; 
lightleft setLightAttenuation [3, 0, 0, 0.6];

lightright = "#lightpoint" createVehicle getpos _vehicle;  
lightright setLightColor _lightBlue;
lightright setLightBrightness 0.4; 
lightright setLightAmbient _lightBlue;
lightright lightAttachObject [_vehicle, [3, 0.8, 0]]; 
lightright setLightAttenuation [3, 0, 0, 0.6];

// playSound "AlarmCar";    
_leftRed = true; 
while{ (alive _vehicle)} do 
{ 
  if(_leftRed) then 
 { 
    _leftRed = false; 
    lightleft setLightColor _lightRed;
    lightleft setLightAmbient _lightRed;
    lightright setLightColor _lightBlue;
    lightright setLightAmbient _lightBlue;
    playSound "AlarmCar";
 } 
 else 
 { 
    _leftRed = true; 
    lightleft setLightColor _lightBlue;
    lightleft setLightAmbient _lightBlue;
    lightright setLightColor _lightRed;
    lightright setLightAmbient _lightRed;
 }; 
  sleep 1; 
}; 

but it's not working ı change on key press or other things but ıts not working

@AgentRev

This comment has been minimized.

Member

AgentRev commented Jun 27, 2016

why don't your i's have dots

@ucaninek69

This comment has been minimized.

ucaninek69 commented Jun 28, 2016

what ı'm not good at english ım from turkey actualy my nicname meaning "flying cow 69"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment