Jump to content
tyeee

[Request] ammo box spawner

Recommended Posts

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

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

  • Like 1

Share this post


Link to post
Share on other sites

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

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

How would I do that? 

thanks

Share this post


Link to post
Share on other sites

Would I make an ammobox.sqf and call that somehow

,

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×