Guest User

Untitled

a guest
May 22nd, 2025
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //all of this goes in init.sqf
  2. //in the init field of units put:
  3. //_this remoteExec ["eyesFnc_UCSF",0];
  4. eyesFnc_UCSF = {
  5. if (isDedicated) exitWith {};
  6. _eyeL2 = "#lightpoint" createVehicleLocal (getPos _this);
  7. _eyeL2 attachTo [_this,[-0.02,0.03,0.12],"head",true];
  8. _eyeL2 setLightAmbient [0.1, 1, 0.1];
  9. _eyeL2 setLightColor [0.1, 1, 0.1];
  10. _eyeL2 setLightBrightness 0.25;
  11. _eyeL2 setLightUseFlare true;
  12. _eyeL2 setLightDayLight true;
  13. _eyeL2 setLightFlareSize 0.15;
  14. _eyeL2 setLightFlareMaxDistance 500;
  15. _eyeL2 setLightAttenuation [0, 0, 50, 0];
  16. _eyeL1 = "#lightpoint" createVehicleLocal (getPos _this);
  17. _eyeL1 attachTo [_this,[-0.1,0.03,0.12],"head",true];
  18. _eyeL1 setLightAmbient [0.1, 1, 0.1];
  19. _eyeL1 setLightColor [0.1, 1, 0.1];
  20. _eyeL1 setLightBrightness 0.25;
  21. _eyeL1 setLightUseFlare true;
  22. _eyeL1 setLightDayLight true;
  23. _eyeL1 setLightFlareSize 0.15;
  24. _eyeL1 setLightFlareMaxDistance 500;
  25. _eyeL1 setLightAttenuation [0, 0, 50, 0];
  26. waitUntil {
  27. sleep 0.5;
  28. if (isNull _this) exitWith { true };
  29. !(alive _this)
  30. };
  31. deleteVehicle _eyeL2;
  32. deleteVehicle _eyeL1;
  33. };
Advertisement
Add Comment
Please, Sign In to add comment