Announcement

Collapse
No announcement yet.

BluFor - NATO Arsenal Box for MCC

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • BluFor - NATO Arsenal Box for MCC

    /* -------------------------------------------------------------------

    File: arsenalbox.sqf

    Author: intel64gamer

    Description: Adds an Arsenal with the specific (limited) gear to a specific type of ammobox. Code will only run on the client.

    Usage: Put the following Line in the init.sqf
    null = execVM "arsenalbox.sqf";


    ------------------------------------------------------------------- */
    /* ---- Config ---- */

    //Type of ammobox e.g. "Box_NATO_Wps_F"
    _boxtype = "B_supplyCrate_F";

    //Array of available Gear e.g. ["arifle_MX_F","arifle_MX_SW_F","arifle_MXC_F"]
    _availableWeapons = [
    "arifle_MX_F",
    "arifle_MX_Black_F",
    "arifle_MXC_F",
    "arifle_MXC_Black_F",
    "arifle_MX_GL_F",
    "arifle_MX_GL_Black_F",
    "arifle_MX_SW_F",
    "arifle_MX_SW_Black_F",
    "LMG_Mk200_BI_F",
    "srifle_DMR_03_khaki_F",
    "srifle_DMR_03_multicam_F",
    "MMG_02_camo_F",
    "MMG_02_black_F",

    "hgun_P07_F",
    "hgun_Pistol_heavy_01_MRD_F",

    "SMG_02_F",

    "launch_NLAW_F",
    "launch_B_Titan_short_F",
    "launch_B_Titan_F",

    "Binocular",
    "Rangefinder"];

    _availableMagazines = [
    "30Rnd_65x39_caseless_mag",
    "30Rnd_65x39_caseless_mag_Tracer",

    "100Rnd_65x39_caseless_mag",
    "100Rnd_65x39_caseless_mag_Tracer",
    "200Rnd_65x39_cased_Box_Tracer",
    200Rnd_65x39_cased_Box",

    "130Rnd_338_Mag",
    "20Rnd_762x51_Mag",

    "16Rnd_9x21_Mag",
    "11Rnd_45ACP_Mag",

    "NLAW_F",
    "Titan_AP",
    "Titan_AT",
    "Titan_AA",

    "HandGrenade",
    "MiniGrenade",

    "SmokeShell",
    "SmokeShellBlue",
    "SmokeShellGreen",
    "SmokeShellOrange",
    "SmokeShellPurple",
    "SmokeShellRed",
    "SmokeShellYellow",

    "B_IR_Grenade",

    "Chemlight_green",
    "Chemlight_red",
    "Chemlight_blue",
    "Chemlight_yellow",

    "DemoCharge_Remote_Mag",
    "APERSBoundingMine_Range_Mag",
    "APERSMine_Range_Mag",
    "APERSTripMine_Wire_Mag",
    "ATMine_Range_Mag",
    "ClaymoreDirectionalMine_Remote_Mag",
    "SLAMDirectionalMine_Wire_Mag",
    "SatchelCharge_Remote_Mag",

    "3Rnd_HE_Grenade_shell",
    "3Rnd_SmokeRed_Grenade_shell",
    "3Rnd_SmokeGreen_Grenade_shell",
    "3Rnd_SmokeBlue_Grenade_shell",
    "3Rnd_SmokeOrange_Grenade_shell",
    "3Rnd_SmokePurple_Grenade_shell",
    "3Rnd_SmokeRed_Grenade_shell",
    "3Rnd_SmokeYellow_Grenade_shell",
    "1Rnd_HE_Grenade_shell",
    "1Rnd_Smoke_Grenade_shell",
    "1Rnd_SmokeBlue_Grenade_shell",
    "1Rnd_SmokeGreen_Grenade_shell",
    "1Rnd_SmokeOrange_Grenade_shell",
    "1Rnd_SmokePurple_Grenade_shell",
    "1Rnd_SmokeRed_Grenade_shell",
    "1Rnd_SmokeYellow_Grenade_shell"
    ];

    _availableItems = ["optic_Holosight",
    "optic_Hamr",
    "optic_Aco",
    "optic_Aco_smg",
    "optic_Holosight_smg",
    "optic_Aco_grn",
    "Optic_Arco",
    "Optic_Hamr",
    "Optic_MRCO",

    "muzzle_snds_H",
    "muzzle_snds_L",
    "muzzle_snds_acp",
    "muzzle_snds_H_SW",
    "muzzle_snds_B",
    "muzzle_snds_338_sand",
    "muzzle_snds_338_black",

    "acc_flashlight",
    "acc_pointer_IR",

    "H_Bandanna_mcamo",
    "H_Watchcap_blk",
    "H_Booniehat_mcamo",
    "H_Cap_tan_specops_US",
    "H_HelmetB",
    "H_HelmetB_desert",
    "H_HelmetB_light",
    "H_HelmetB_light_desert",
    "H_HelmetB_light_grass",
    "H_HelmetB_snakeskin",
    "H_HelmetB_grass",
    "H_HelmetSpecB_paint2",
    "H_HelmetSpecB_blk",

    "G_Combat",
    "G_Aviator",
    "G_Spectacles",
    "G_Sport_Blackred",
    "G_Tactical_Clear",
    "G_Balaclava_blk",
    "G_Balaclava_combat",
    "G_Bandanna_beast",
    "G_Bandanna_tan",

    "V_Chestrig_rgr",
    "V_TacVest_khk",
    "V_PlateCarrier3_rgr",
    "V_PlateCarrierGL_rgr",
    "V_PlateCarrierSpec_rgr",
    "V_PlateCarrier2_rgr",
    "V_PlateCarrier1_rgr",
    "U_B_CombatUniform_mcam",
    "U_B_CombatUniform_mcam_tshirt",

    "ItemMap",
    "ItemRadio",
    "ItemWatch",
    "ItemCompass",
    "ItemGPS",
    "O_UavTerminal",
    "Medikit",
    "ToolKit",
    "MineDetector",

    "FirstAidKit",
    "NVGoggles"
    ];
    _availableBackpacks = [
    "B_AssaultPack_mcamo",
    "B_AssaultPack_rgr",
    "B_Kitbag_rgr",
    "B_Kitbag_mcamo",
    "B_Carryall_mcamo",
    "B_Bergen_mcamo",
    "B_TacticalPack_mcamo"
    ];

    //Interval at which the scripts checks whether to add/remove the action. Anything between 1 to 5 seconds should be fine and not impact client performance.
    _interval = 3;

    //Code is Client Side Only
    if (isDedicated) exitWith {};

    _actionadded = false;
    _action = -100;

    [missionNamespace,_availableWeapons,true] call BIS_fnc_addVirtualWeaponCargo;
    [missionNamespace,_availableMagazines,true] call BIS_fnc_addVirtualMagazineCargo;
    [missionNamespace,_availableItems,true] call BIS_fnc_addVirtualItemCargo;
    [missionNamespace,_availableBackpacks,true] call BIS_fnc_addVirtualBackpackCargo;

    while {true} do {
    if ((typeOf cursorTarget) == _boxtype && (cursorTarget distance player) <= 5) then {
    if (!_actionadded) then {
    _action = player addAction ["<t color='#FF0000'>Arsenal</t>", { [] spawn BIS_fnc_arsenal }];
    _actionadded = true;
    };

    } else {
    if (_actionadded) then {
    player removeAction _action;
    _actionadded = false;
    };
    };

    sleep _interval;
    };

  • #2
    Re: BluFor - NATO Arsenal Box for MCC

    OpFor Variant (4-10-2015):

    /* -------------------------------------------------------------------

    File: arsenalbox.sqf

    Author: intel64gamer

    Description: Adds an Arsenal with the specific (limited) gear to a specific type of ammobox. Code will only run on the client.

    Usage: Put the following Line in the init.sqf
    null = execVM "arsenalbox.sqf";


    ------------------------------------------------------------------- */
    /* ---- Config ---- */

    //Type of ammobox e.g. "Box_NATO_Wps_F"
    _boxtype = "O_supplyCrate_F";

    //Array of available Gear e.g. ["arifle_MX_F","arifle_MX_SW_F","arifle_MXC_F"]
    _availableWeapons = [
    "LMG_Zafir_F",
    "srifle_DMR_01_F",
    "MMG_01_hex_F",


    "SMG_02_F",
    "hgun_PDW2000_F",

    "arifle_Katiba_F",
    "arifle_Katiba_C_F",
    "arifle_Katiba_GL_F",

    "hgun_Rook40_F",
    "hgun_Pistol_heavy_02_F",

    "launch_RPG32_F",
    "launch_B_Titan_short_F",
    "launch_B_Titan_F",

    "Binocular",
    "Rangefinder"
    ];

    _availableMagazines = ["150Rnd_762x51_Box",
    "150Rnd_762x51_Box_Tracer",
    "30Rnd_65x39_caseless_green",
    "30Rnd_65x39_caseless_green_mag_Tracer",
    "30Rnd_9x21_Mag",
    "16Rnd_9x21_Mag",
    "30Rnd_9x21_Mag",
    "6Rnd_45ACP_Cylinder",
    "10Rnd_762x54_Mag",
    "150Rnd_93x64_Mag",

    "RPG32_F",
    "RPG32_HE_F",
    "Titan_AP",
    "Titan_AT",
    "Titan_AA",

    "HandGrenade",
    "MiniGrenade",

    "SmokeShell",
    "SmokeShellBlue",
    "SmokeShellGreen",
    "SmokeShellOrange",
    "SmokeShellPurple",
    "SmokeShellRed",
    "SmokeShellYellow",

    "O_IR_Grenade",

    "Chemlight_green",
    "Chemlight_red",
    "Chemlight_blue",
    "Chemlight_yellow",

    "DemoCharge_Remote_Mag",
    "APERSBoundingMine_Range_Mag",
    "APERSMine_Range_Mag",
    "APERSTripMine_Wire_Mag",
    "ATMine_Range_Mag",
    "ClaymoreDirectionalMine_Remote_Mag",
    "SLAMDirectionalMine_Wire_Mag",
    "SatchelCharge_Remote_Mag",

    "1Rnd_HE_Grenade_shell",
    "1Rnd_Smoke_Grenade_shell",
    "1Rnd_SmokeBlue_Grenade_shell",
    "1Rnd_SmokeGreen_Grenade_shell",
    "1Rnd_SmokeOrange_Grenade_shell",
    "1Rnd_SmokePurple_Grenade_shell",
    "1Rnd_SmokeRed_Grenade_shell",
    "1Rnd_SmokeYellow_Grenade_shell"
    ];

    _availableItems = ["optic_Holosight",
    "optic_Hamr",
    "optic_Aco",
    "optic_Aco_smg",
    "optic_Holosight_smg",
    "optic_MRD",
    "optic_Aco_grn",
    "Optic_Arco",
    "Optic_Hamr",
    "Optic_MRCO",

    "muzzle_snds_H",
    "muzzle_snds_L",
    "muzzle_snds_acp",
    "muzzle_snds_H_SW",
    "muzzle_snds_B",

    "acc_flashlight",
    "acc_pointer_IR",

    "H_MilCap_ocamo",
    "H_Watchcap_blk",
    "H_Booniehat_khk",
    "H_Watchcap_camo",
    "H_HelmetO_ocamo",
    "H_HelmetLeaderO_ocamo",
    "H_HelmetLeaderO_oucamo",
    "H_HelmetSpecO_ocamo",
    "H_HelmetSpecO_blk",
    "H_Beret_ocamo",

    "G_Combat",
    "G_Aviator",
    "G_Spectacles",
    "G_Sport_Blackred",
    "G_Tactical_Clear",
    "G_Balaclava_blk",
    "G_Balaclava_combat",
    "G_Bandanna_beast",
    "G_Bandanna_tan",

    "V_HarnessOSpec_gry",
    "V_HarnessOSpec_brn",
    "V_HarnessOGL_gry",
    "V_HarnessO_gry",
    "V_HarnessOGL_brn",
    "V_HarnessO_brn",

    "U_O_CombatUniform_ocamo",
    "U_O_CombatUniform_oucamo",
    "U_O_SpecopsUniform_ocamo",
    "U_O_SpecopsUniform_blk",

    "ItemMap",
    "ItemRadio",
    "ItemWatch",
    "ItemCompass",
    "ItemGPS",
    "O_UavTerminal",

    "Medikit",
    "ToolKit",
    "MineDetector",

    "FirstAidKit",
    "NVGoggles_OPFOR"
    ];

    _availableBackpacks = ["B_Carryall_ocamo",
    "B_FieldPack_ocamo",
    "B_TacticalPack_ocamo",
    "B_AssaultPack_ocamo"
    ];

    //Interval at which the scripts checks whether to add/remove the action. Anything between 1 to 5 seconds should be fine and not impact client performance.
    _interval = 3;

    //Code is Client Side Only
    if (isDedicated) exitWith {};

    _actionadded = false;
    _action = -100;

    [missionNamespace,_availableWeapons,true] call BIS_fnc_addVirtualWeaponCargo;
    [missionNamespace,_availableMagazines,true] call BIS_fnc_addVirtualMagazineCargo;
    [missionNamespace,_availableItems,true] call BIS_fnc_addVirtualItemCargo;
    [missionNamespace,_availableBackpacks,true] call BIS_fnc_addVirtualBackpackCargo;

    while {true} do {
    if ((typeOf cursorTarget) == _boxtype && (cursorTarget distance player) <= 5) then {
    if (!_actionadded) then {
    _action = player addAction ["<t color='#FF0000'>Arsenal</t>", { [] spawn BIS_fnc_arsenal }];
    _actionadded = true;
    };

    } else {
    if (_actionadded) then {
    player removeAction _action;
    _actionadded = false;
    };
    };

    sleep _interval;
    };

    Comment


    • #3
      Re: BluFor - NATO Arsenal Box for MCC

      FIA Variant (4-10-2015)

      /* -------------------------------------------------------------------

      File: arsenalbox.sqf

      Author: intel64gamer

      Description: Adds an Arsenal with the specific (limited) gear to a specific type of ammobox. Code will only run on the client.

      Usage: Put the following Line in the init.sqf
      null = execVM "arsenalbox.sqf";


      ------------------------------------------------------------------- */
      /* ---- Config ---- */

      //Type of ammobox e.g. "Box_NATO_Wps_F"
      _boxtype = "B_supplyCrate_F";

      //Array of available Gear e.g. ["arifle_MX_F","arifle_MX_SW_F","arifle_MXC_F"]
      _availableWeapons = ["LMG_Mk200_F",
      "SMG_02_F",
      "hgun_PDW2000_F",
      "SMG_01_F",
      "arifle_TRG21_F",
      "arifle_TRG20_F",
      "arifle_TRG21_GL_F",
      "hgun_Rook40_F",
      "hgun_Pistol_heavy_02_F",
      "hgun_ACPC2_F",
      "launch_RPG32_F",
      "srifle_DMR_06_camo_F",
      "srifle_DMR_06_camo_khs_F",

      "Binocular",
      "Rangefinder"
      ];

      _availableMagazines = [
      "200Rnd_65x39_cased_Box",
      "200Rnd_65x39_cased_Box_Tracer",
      "30Rnd_556x45_Stanag",
      "30Rnd_556x45_Stanag_Tracer_Red",
      "30Rnd_556x45_Stanag_Tracer_Green",
      "30Rnd_556x45_Stanag_Tracer_Yellow",
      "30Rnd_9x21_Mag",
      "16Rnd_9x21_Mag",
      "6Rnd_45ACP_Cylinder",
      "20Rnd_762x51_Mag",
      "9Rnd_45ACP_Mag",

      "RPG32_F",
      "RPG32_HE_F",

      "HandGrenade",
      "MiniGrenade",

      "SmokeShell",
      "SmokeShellBlue",
      "SmokeShellGreen",
      "SmokeShellOrange",
      "SmokeShellPurple",
      "SmokeShellRed",
      "SmokeShellYellow",

      "Chemlight_green",
      "Chemlight_red",
      "Chemlight_blue",
      "Chemlight_yellow",

      "DemoCharge_Remote_Mag",
      "APERSBoundingMine_Range_Mag",
      "APERSMine_Range_Mag",
      "APERSTripMine_Wire_Mag",
      "ATMine_Range_Mag",
      "ClaymoreDirectionalMine_Remote_Mag",
      "SLAMDirectionalMine_Wire_Mag",
      "SatchelCharge_Remote_Mag",

      "1Rnd_HE_Grenade_shell",
      "1Rnd_Smoke_Grenade_shell",
      "1Rnd_SmokeBlue_Grenade_shell",
      "1Rnd_SmokeGreen_Grenade_shell",
      "1Rnd_SmokeOrange_Grenade_shell",
      "1Rnd_SmokePurple_Grenade_shell",
      "1Rnd_SmokeRed_Grenade_shell",
      "1Rnd_SmokeYellow_Grenade_shell"
      ];

      _availableItems = ["optic_Holosight",
      "optic_Hamr",
      "optic_Aco",
      "optic_Aco_smg",
      "optic_Holosight_smg",
      "optic_MRD",
      "optic_Aco_grn",
      "Optic_Arco",
      "Optic_Hamr",
      "Optic_MRCO",

      "muzzle_snds_H",
      "muzzle_snds_L",
      "muzzle_snds_acp",
      "muzzle_snds_H_SW",
      "muzzle_snds_B",

      "acc_flashlight",
      "acc_pointer_IR",

      "H_Cap_tan",
      "H_Watchcap_blk",
      "H_Booniehat_khk",
      "H_Watchcap_camo",
      "H_Cap_blk",
      "H_Cap_oli_hs",
      "H_MilCap_gry",
      "H_MilCap_blue",
      "H_Bandanna_khk",
      "H_Bandanna_khk_hs",
      "H_Bandanna_gry",
      "H_Bandanna_sgg",
      "H_Bandanna_camo",
      "H_Shemag_khk",
      "H_Shemag_tan",
      "H_Shemag_olive_hs",
      "H_ShemagOpen_tan",
      "H_Booniehat_grn",
      "H_Booniehat_dirty",
      "H_Booniehat_khk_hs",

      "G_Combat",
      "G_Aviator",
      "G_Spectacles",
      "G_Sport_Blackred",
      "G_Tactical_Clear",
      "G_Balaclava_blk",
      "G_Balaclava_combat",
      "G_Bandanna_beast",
      "G_Bandanna_tan",

      "V_BandollierB_cbr",
      "V_Chestrig_blk",
      "V_TacVest_khk",
      "V_TacVest_camo",
      "V_TacVestIR_blk",
      "V_HarnessO_brn",

      "U_BG_Guerilla1_1",
      "U_BG_Guerilla2_1",
      "U_BG_Guerilla2_2",
      "U_BG_Guerilla2_3",
      "U_BG_Guerilla3_1",
      "U_BG_Guerilla3_2",
      "U_BG_leader",

      "ItemMap",
      "ItemRadio",
      "ItemWatch",
      "ItemCompass",
      "ItemGPS",

      "Medikit",
      "ToolKit",
      "MineDetector",

      "FirstAidKit",
      "NVGoggles"
      ];

      _availableBackpacks = ["B_AssaultPack_khk",
      "B_Kitbag_sgg",
      "B_TacticalPack_blk",
      "B_FieldPack_khk",
      "B_Carryall_khk",
      "B_Bergen_sgg"
      ];

      //Interval at which the scripts checks whether to add/remove the action. Anything between 1 to 5 seconds should be fine and not impact client performance.
      _interval = 3;

      //Code is Client Side Only
      if (isDedicated) exitWith {};

      _actionadded = false;
      _action = -100;

      [missionNamespace,_availableWeapons,true] call BIS_fnc_addVirtualWeaponCargo;
      [missionNamespace,_availableMagazines,true] call BIS_fnc_addVirtualMagazineCargo;
      [missionNamespace,_availableItems,true] call BIS_fnc_addVirtualItemCargo;
      [missionNamespace,_availableBackpacks,true] call BIS_fnc_addVirtualBackpackCargo;

      while {true} do {
      if ((typeOf cursorTarget) == _boxtype && (cursorTarget distance player) <= 5) then {
      if (!_actionadded) then {
      _action = player addAction ["<t color='#FF0000'>Arsenal</t>", { [] spawn BIS_fnc_arsenal }];
      _actionadded = true;
      };

      } else {
      if (_actionadded) then {
      player removeAction _action;
      _actionadded = false;
      };
      };

      sleep _interval;
      };

      Comment


      • #4
        Re: BluFor - NATO Arsenal Box for MCC

        AAF Variant (4-10-2015)

        /* -------------------------------------------------------------------

        File: arsenalbox.sqf

        Author: intel64gamer

        Description: Adds an Arsenal with the specific (limited) gear to a specific type of ammobox. Code will only run on the client.

        Usage: Put the following Line in the init.sqf
        null = execVM "arsenalbox.sqf";


        ------------------------------------------------------------------- */
        /* ---- Config ---- */

        //Type of ammobox e.g. "Box_NATO_Wps_F"
        _boxtype = "I_supplyCrate_F";

        //Array of available Gear e.g. ["arifle_MX_F","arifle_MX_SW_F","arifle_MXC_F"]
        _availableWeapons = [
        "hgun_PDW2000_F",
        "arifle_Mk20_F",
        "arifle_Mk20_GL_F",
        "arifle_Mk20C_F",
        "LMG_Mk200_F",
        "hgun_Rook40_F",
        "MMG_01_tan_F",
        "srifle_DMR_06_olive_F"

        "launch_NLAW_F",
        "launch_B_Titan_short_F",
        "launch_B_Titan_F",

        "Binocular",
        "Rangefinder"
        ];

        _availableMagazines = [
        "200Rnd_65x39_cased_Box",
        "200Rnd_65x39_cased_Box_Tracer",
        "30Rnd_556x45_Stanag_Tracer_Green",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag_Tracer_Yellow",
        "16Rnd_9x21_Mag",
        "30Rnd_9x21_Mag",
        "9Rnd_45ACP_Mag",
        "20Rnd_762x51_Mag",
        "150Rnd_93x64_Mag",

        "NLAW_F",
        "Titan_AP",
        "Titan_AT",
        "Titan_AA",

        "HandGrenade",
        "MiniGrenade",

        "SmokeShell",
        "SmokeShellBlue",
        "SmokeShellGreen",
        "SmokeShellOrange",
        "SmokeShellPurple",
        "SmokeShellRed",
        "SmokeShellYellow",

        "I_IR_Grenade",

        "Chemlight_green",
        "Chemlight_red",
        "Chemlight_blue",
        "Chemlight_yellow",

        "DemoCharge_Remote_Mag",
        "APERSBoundingMine_Range_Mag",
        "APERSMine_Range_Mag",
        "APERSTripMine_Wire_Mag",
        "ATMine_Range_Mag",
        "ClaymoreDirectionalMine_Remote_Mag",
        "SLAMDirectionalMine_Wire_Mag",
        "SatchelCharge_Remote_Mag",

        "1Rnd_HE_Grenade_shell",
        "1Rnd_Smoke_Grenade_shell",
        "1Rnd_SmokeBlue_Grenade_shell",
        "1Rnd_SmokeGreen_Grenade_shell",
        "1Rnd_SmokeOrange_Grenade_shell",
        "1Rnd_SmokePurple_Grenade_shell",
        "1Rnd_SmokeRed_Grenade_shell",
        "1Rnd_SmokeYellow_Grenade_shell"
        ];

        _availableItems = ["optic_Holosight",
        "optic_Hamr",
        "optic_Aco",
        "optic_Aco_smg",
        "optic_Holosight_smg",
        "optic_Aco_grn",
        "Optic_Arco",
        "Optic_Hamr",
        "Optic_MRCO",

        "muzzle_snds_H",
        "muzzle_snds_L",
        "muzzle_snds_acp",
        "muzzle_snds_H_SW",
        "muzzle_snds_B",

        "acc_flashlight",
        "acc_pointer_IR",

        "H_Booniehat_dgtl",
        "H_HelmetIA",
        "H_MilCap_dgtl",
        "H_Watchcap_camo",

        "G_Combat",
        "G_Aviator",
        "G_Spectacles",
        "G_Sport_Blackred",
        "G_Tactical_Clear",
        "G_Balaclava_blk",
        "G_Balaclava_combat",
        "G_Bandanna_beast",
        "G_Bandanna_tan",

        "V_PlateCarrierIA1_dgtl",
        "V_PlateCarrierIA2_dgtl",
        "V_PlateCarrierIAGL_dgtl",
        "V_Chestrig_rgr",
        "V_TacVest_oli",
        "V_BandollierB_rgr",

        "U_I_CombatUniform",
        "U_I_CombatUniform_tshirt",

        "ItemMap",
        "ItemRadio",
        "ItemWatch",
        "ItemCompass",
        "ItemGPS",
        "O_UavTerminal",
        "Medikit",
        "ToolKit",
        "MineDetector",

        "FirstAidKit",
        "NVGoggles_INDEP"
        ];
        _availableBackpacks = [
        "B_AssaultPack_dgtl",
        "B_Kitbag_sgg",
        "B_Carryall_cbr",
        "B_FieldPack_blk",
        "B_TacticalPack_oli",
        "B_Bergen_blk"
        ];

        //Interval at which the scripts checks whether to add/remove the action. Anything between 1 to 5 seconds should be fine and not impact client performance.
        _interval = 3;

        //Code is Client Side Only
        if (isDedicated) exitWith {};

        _actionadded = false;
        _action = -100;

        [missionNamespace,_availableWeapons,true] call BIS_fnc_addVirtualWeaponCargo;
        [missionNamespace,_availableMagazines,true] call BIS_fnc_addVirtualMagazineCargo;
        [missionNamespace,_availableItems,true] call BIS_fnc_addVirtualItemCargo;
        [missionNamespace,_availableBackpacks,true] call BIS_fnc_addVirtualBackpackCargo;

        while {true} do {
        if ((typeOf cursorTarget) == _boxtype && (cursorTarget distance player) <= 5) then {
        if (!_actionadded) then {
        _action = player addAction ["<t color='#FF0000'>Arsenal</t>", { [] spawn BIS_fnc_arsenal }];
        _actionadded = true;
        };

        } else {
        if (_actionadded) then {
        player removeAction _action;
        _actionadded = false;
        };
        };

        sleep _interval;
        };

        Comment

        Connect

        Collapse

        TeamSpeak 3 Server

        Collapse

        Advertisement

        Collapse

        Twitter Feed

        Collapse

        Working...
        X