Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //all of this goes in init.sqf
- //in the init field of units put:
- //_this remoteExec ["eyesFnc_UCSF",0];
- eyesFnc_UCSF = {
- if (isDedicated) exitWith {};
- _eyeL2 = "#lightpoint" createVehicleLocal (getPos _this);
- _eyeL2 attachTo [_this,[-0.02,0.03,0.12],"head",true];
- _eyeL2 setLightAmbient [0.1, 1, 0.1];
- _eyeL2 setLightColor [0.1, 1, 0.1];
- _eyeL2 setLightBrightness 0.25;
- _eyeL2 setLightUseFlare true;
- _eyeL2 setLightDayLight true;
- _eyeL2 setLightFlareSize 0.15;
- _eyeL2 setLightFlareMaxDistance 500;
- _eyeL2 setLightAttenuation [0, 0, 50, 0];
- _eyeL1 = "#lightpoint" createVehicleLocal (getPos _this);
- _eyeL1 attachTo [_this,[-0.1,0.03,0.12],"head",true];
- _eyeL1 setLightAmbient [0.1, 1, 0.1];
- _eyeL1 setLightColor [0.1, 1, 0.1];
- _eyeL1 setLightBrightness 0.25;
- _eyeL1 setLightUseFlare true;
- _eyeL1 setLightDayLight true;
- _eyeL1 setLightFlareSize 0.15;
- _eyeL1 setLightFlareMaxDistance 500;
- _eyeL1 setLightAttenuation [0, 0, 50, 0];
- waitUntil {
- sleep 0.5;
- if (isNull _this) exitWith { true };
- !(alive _this)
- };
- deleteVehicle _eyeL2;
- deleteVehicle _eyeL1;
- };
Advertisement
Add Comment
Please, Sign In to add comment