Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flareBrightness = 1;
- flareAttenuation = [1, 2, 2, 2, 500, 700];
- flareDelay = 22;
- flareFunction = {
- _color = [];
- switch (typeOf _this) do
- {
- case "F_40mm_Red": { _color = [1,0,0];};
- case "F_40mm_White": {_color = [1,1,1];};
- case "F_40mm_Green": {_color = [0,1,0]};
- case "F_40mm_Yellow": {_color = [1, 1, 0];};
- };
- _light="#lightpoint"createVehicleLocal(position _this);
- _light setLightBrightness flareBrightness;
- _light setLightAmbient _color;
- _light setLightColor _color;
- _light lightAttachObject[_this,[0,0,0.5]];
- _light setLightAttenuation flareAttenuation;
- _light spawn {
- sleep flareDelay;
- deleteVehicle _this;
- };
- };
- {
- _x addEventHandler ["Fired", {
- _this select 6 spawn {
- sleep 3;
- _this remoteExec ["flareFunction", 0];
- };
- }];
- } forEach allUnits;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement