Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ltluis

How created a Ammo Box with virtual arsenal restricted?

Recommended Posts

Hi All

I have a question, How created a Ammo Box with virtual arsenal restricted?

Need it for a box to the players can take ammo and differents Items

But I don't want all items of virtual arsenal . Only the ammo and items what I want

I see some post but i can't find any with my problem.

If you can help me it will excellent

Thanks all

Share this post


Link to post
Share on other sites

Thanks Serjames for the information. I try to use it . But I was find any Script to do this if you have one will be excelent

Thanks Again

Share this post


Link to post
Share on other sites

Here's something I found a while ago.

// Put in box init: null = [this] execVM "virtual_arsenal_init.sqf"
//Init stuff
_crate = _this select 0;
["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal;

// Classnames of available goggles, separated by commas. Ex: "H_CrewHelmetHeli_B", "H_PilotHelmetHeli_B"
_availableHeadgear = [
];

// Classnames of available goggles, separated by commas. Ex: "G_Tactical_Clear", "G_Spectacles_Tinted"
_availableGoggles = [
];

// Classnames of available uniforms, separated by commas. Ex: "U_B_HeliPilotCoveralls", "U_I_CombatUniform_tshirt"
_availableUniforms = [
];

// Classnames of available vests, separated by commas. Ex: "V_PlateCarrier3_rgr", "V_PlateCarrierL_CTRG"
_availableVests = [
];

// Classnames of available backpacks, separated by commas. Ex: "B_UAV_01_backpack_F", "O_UAV_01_backpack_F"
_availableBackpacks = [
];

// Classnames of available weapons, separated by commas. Ex: "hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_02_F" 
_availableWeapons = [
];

// Classnames of available magazines, separated by commas. Ex: "11Rnd_45ACP_Mag", "SmokeShell" 
_availableMagazines = [
];

// Classnames of Available items, separated by commas. Ex: "ItemCompass", "B_UavTerminal"
_availableItems = [
];


//Populates Virtual Arsenal with the predefined items
[_crate,( _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo;
[_crate,(_availableItems + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests)] call BIS_fnc_addVirtualItemCargo;
[_crate, (_availableMagazines)] call BIS_fnc_addVirtualMagazineCargo;
[_crate,(_availableWeapons)] call BIS_fnc_addVirtualWeaponCargo;

Share this post


Link to post
Share on other sites

Thank you! For the Help I really appreciate it

Thanks All

Share this post


Link to post
Share on other sites
Sign in to follow this  

×