Jump to content
ashton324

Custom Arsenal Ammobox issue

Recommended Posts

Hi, 

 

I have made a custom ammobox mod, basically when you spawn the ammobox it already has a pre defined init in the cfgVehicles.hpp which allows you to access the ACE Arsenal (This is working) and also gives you an option to access the BIS Arsenal. The BIS Arsenal part is not working, I get no option to access the arsenal, I have tried multiple combinations but cannot get it to work. Any ideas? Code below for the init in the cfgVehicles.hpp file, the box is the B_supplyCrate_F.

 

{
init = "(_this select 0) call ace_arsenal_fnc_initBox; [ ""AmmoboxInit"", [ ammoBox, true, {(_this distance _target) < 10} ] ] call BIS_fnc_arsenal;";
};

Thanks

Share this post


Link to post
Share on other sites
On 4/20/2020 at 7:48 PM, ashton324 said:

[ ""AmmoboxInit"", [ ammoBox, true, {(_this distance _target) < 10} ] ] call BIS_fnc_arsenal;

why do you use the ammoBox variable? Did you set it?

I'd say just use the same as for ace, take the object from _this

Share this post


Link to post
Share on other sites
14 hours ago, Dedmen said:

why do you use the ammoBox variable? Did you set it?

I'd say just use the same as for ace, take the object from _this

Thanks for the reply,

 

So it would look something like this?

init = "(_this select 0) call ace_arsenal_fnc_initBox; [ ""AmmoboxInit"", [ _this, true, {(_this distance _target) < 10} ] ] call BIS_fnc_arsenal;";

Or do I need the _this select 0 prior to the bracket before the Ammoboxinit?

 

Thanks

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

×