This script was working in my overwatch server but for some reason i cant get it to work in EPOCH and no longer in Overwatch. Im willing to donate to anyone who can get it working in both. What it does is once the laptop is placed on the ground you can then use it with MACCA134's cctv script.
// ------------------------------------ Deploy / Pack Laptop ----------------------------------- _weapons = [currentWeapon player] + (weapons player) + (magazines player); _isLaptop = typeOf cursorTarget in ["Laptop_EP1"]; //Laptop DEPLOY if (("ItemToolbox" in _weapons) && ("ItemGPS" in _weapons)) then { hasLaptopItem = true; } else { hasLaptopItem = false;}; if((speed player <= 1) && hasLaptopItem && _canDo) then { if (s_player_deployLaptop < 0) then { s_player_deployLaptop = player addaction[("<t color=""#007ab7"">" + ("Connect to CCTV Network") +"</t>"),"laptop\deploy.sqf","",5,false,true,"", ""]; }; }; } else { player removeAction s_player_deployLaptop; s_player_deployLaptop = -1; }; //PACK Laptop if((_isLaptop) and _canDo) then { if (s_player_deployLaptop2 < 0) then { s_player_deployLaptop2 = player addaction[("<t color=""#007ab7"">" + ("Disassemble Laptop") +"</t>"),"laptop\pack.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deployLaptop2; s_player_deployLaptop2 = -1; }; //-------------------------------------------------END---------------------------------------
Any help would be greatly appreciated.