Thermal_R.sqf 764 B

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