ashton324 2 Posted April 20, 2020 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
Dedmen 2697 Posted April 24, 2020 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
ashton324 2 Posted April 25, 2020 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