Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_car","_lightR1","_lightR2","_lightB1","_lightB2","_lightW1","_lightW2"];
- _car = _this select 0;
- if(isServer and isDedicated)exitWith{};
- while{!(alive _car)}do{sleep 1;};
- for [{_a=0},{_a < 1},{_a=_a}] do
- {
- waitUntil {_car animationPhase "BeaconsStart" > 0};
- if (_car animationPhase "Beacon4" > 0 and _car animationPhase "Beacon4" < 0.5) then
- {
- _lightB1 = "#lightpoint" createVehicleLocal getpos ( _car );
- _lightB1 attachTo [_car,[0,0,0],"pollights_pos"];
- _lightB1 setLightBrightness 0.4;
- _lightB1 setLightAmbient[ 0.0, 0.0, 0.1 ];
- _lightB1 setLightColor[ 0, 0, 1 ];
- _lightB1 setLightAttenuation[20,4,4,0];
- }else
- {
- deleteVehicle _lightB1;
- };
- if (_car animationPhase "Beacon1" > 0.5 and _car aimationPhase "Beacon1" < 1.0) then
- {
- _lightR1 = "#lightpoint" createVehicleLocal getpos ( _car );
- _lightR1 attachTo [_car,[0,0,0],"pollights_pos"];
- _lightR1 setLightBrightness 0.4;
- _lightR1 setLightAmbient[ 0.1, 0.0, 0.0 ];
- _lightR1 setLightColor[ 1, 0, 0 ];
- _lightR1 setLightAttenuation[20,4,4,0];
- }else
- {
- deleteVehicle _lightR1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement