Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
rlex

Arsenal as ammobox?

Recommended Posts

I surely saw it in some mission...

How i can make, say, attached arsenal to act as pure ammobox, providing player only with ammo for weapons he currently own and nothing else?

Share this post


Link to post
Share on other sites

Mine has, but I think it's as easy as initialise the ammobox with an empty array (no asssets added) and when the player Access, arsenal won't allow him to do anything but adding extra default ammo to his inventory.

 

But that's a bit dangerous, if he closes the Arsenal unequiping his weapon, he won't be able to pick it again.

Share this post


Link to post
Share on other sites

To my knowledge, you can always reequip weapons you already have using it, theyre whitelisted I think.

For this youll need ammo class names of weapons hell be using.

Create an ammo box called "Box1"

then execute this scrip in init.sqf:

execvm 'arsenal.sqf';

arsenal.sqf

[Box1, [

"MAGAZINE CLASS NAME HERE",
"ANOTHER CLASS NAME HERE",
"YOU GUESSED IT"

], true] call BIS_fnc_addVirtualmagazineCargo;

Share this post


Link to post
Share on other sites

×