Thermal_R.sqf 782 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //remove thermal
  2. //Created by Rexi
  3. {
  4. _items = assigneditems _x;
  5. _NVGS = ["SWOP_NVChipClean","SWOP_NVChip", "SWOP_NVChip2"];
  6. if ("SWOP_NVChipClean" in _items) then {
  7. _x unassignItem "SWOP_NVChipClean";
  8. _x removeItem "SWOP_NVChipClean";
  9. _x addItem "OPTRE_NVG";
  10. _x assignItem "OPTRE_NVG";
  11. }
  12. else{
  13. if ("SWOP_NVChip" in _items) then {
  14. _x unassignItem "SWOP_NVChip";
  15. _x removeItem "SWOP_NVChip";
  16. _x addItem "OPTRE_NVG";
  17. _x assignItem "OPTRE_NVG";
  18. }
  19. else{
  20. if ( "SWOP_NVChip2" in _items) then {
  21. _x unassignItem "SWOP_NVChip2";
  22. _x removeItem "SWOP_NVChip2";
  23. _x addItem "OPTRE_NVG";
  24. _x assignItem "OPTRE_NVG";
  25. }
  26. ;}
  27. ;}
  28. ;} forEach playableUnits;
  29. hintSilent "Thermals have been removed from players";