Jump to content
Sign in to follow this  
Fr3eMan

Spawned Virtual Arsenal don't spawn mines as ammo

Recommended Posts

During some test I find this problem, apparently on spawning of virtual arsenal, the mines doesn't are loaded inside the arsenal.
Mines are not considered as ammo in  arsenal maybe?

Below the code i used for generate the virtual arsenal.

_a = createVehicle ["Land_Pallet_MilBoxes_F", position player, [], 0, "CAN_COLLIDE"];
_a allowdamage false;
["AmmoboxInit",[_a,false]] call BIS_fnc_arsenal;
[_a,[],true] call BIS_fnc_addVirtualWeaponCargo;
[_a,["APERSMine","APERSBoundingMine","APERSTripMine","SLAMDirectionalMine","ATMine"],true] call BIS_fnc_addVirtualMagazineCargo;
[_a,[],true] call BIS_fnc_addVirtualItemCargo;
[_a,[],true] call BIS_fnc_addVirtualBackpackCargo;

 

Share this post


Link to post
Share on other sites

Magazine =/= Ammo

 

BIS_fnc_addVirtualMagazineCargo requires magazine classes. 

 

Check that the classes you provide are from Cfgmagazines 

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites
51 minutes ago, mrcurry said:

Magazine =/= Ammo

 

BIS_fnc_addVirtualMagazineCargo requires magazine classes. 

 

Check that the classes you provide are from Cfgmagazines 

 

 

 

You right, "ATMine_Range_Mag" as magazines "ATMine" as object.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×