tyeee 11 Posted July 28, 2016 Hi, I was wondering if anyone help do this from me can't seem to find anything like it I want ammo box spawner, so you go in game scroll wheel on something then spawn ammo box, ace medical, or any custom made ammo box Share this post Link to post Share on other sites
R3vo 2654 Posted July 28, 2016 initPlayerLocal.sqf (Placed inside your mission root) YOUROBJECT addAction [ "Spawn Ammobox", { createVehicle ["Box_NATO_Wps_F",position YOUROBJECT, [],10,"NONE"]; } ]; Replace YOUROBJECT with the variable name of a global object 1 Share this post Link to post Share on other sites
tyeee 11 Posted July 29, 2016 Now i'm trying to set up custom ammo boxes filled with certain ammo ? id=8; type="ADFU_weaponbox_f88"; class CustomAttributes { class Attribute0 { property="ammoBox"; expression="[_this,_value] call bis_fnc_initAmmoBox;"; class Value { class data { class type { type[]= { "STRING" }; }; value="[[[[""ADFU_F88SA1_fg"",""ADFU_f88sa2_fg"",""ADFU_f88sa2_camo_fg""],[5,5,5]],[[""ADFU_30Rnd_aug"",""ADFU_30Rnd_aug_TR"",""ADFU_30Rnd_aug_TY"",""ADFU_30Rnd_aug_TG"",""ADFU_30Rnd_aug_IR"",""ADFU_30Rnd_aug_mixed""],[100,30,30,30,30,30]],[[],[]],[[],[]]],false]"; }; }; }; Thanks for the help :rolleyes: Share this post Link to post Share on other sites
R3vo 2654 Posted July 30, 2016 You could fill various ammoboxes with Eden and hide their model. Once the player requests a ammobox, teleport it to their position and set showModel to true again. Share this post Link to post Share on other sites
tyeee 11 Posted July 30, 2016 How would I do that? thanks Share this post Link to post Share on other sites
tyeee 11 Posted July 31, 2016 Would I make an ammobox.sqf and call that somehow , Share this post Link to post Share on other sites
lawndartleo 109 Posted December 3, 2016 What if I want to add the aresnal line to the ammo box? 0 = ["AmmoboxInit",[this,true]] spawn BIS_fnc_arsenal; I use this one on my ammo crate at main base. Ok, fine, it unrealistic to have a bottomless ammo dump at your disposal, but all my squad mates appreciate having one anyways. Share this post Link to post Share on other sites