barbuse 5 Posted April 19, 2017 Hi folks, I've been trying to get the IA of an APC to fire with the smoke launcher but nothing happens... I've tried that vtt1C selectWeapon "SmokeLauncher"; vtt1C fire "SmokeLauncher"; vtt1C forceWeaponFire ["SmokeLauncher"]; vtt1C being the commander of the APC. Any ideas ?! Thanks in advance :) Share this post Link to post Share on other sites
barbuse 5 Posted April 20, 2017 I've tried several other variants but still can't get it to work :/ Share this post Link to post Share on other sites
Flax 397 Posted April 20, 2017 Try this, it used to work back in A2. I can't test right now to check it. _veh action ["useWeapon", _veh, driver _veh, x]; Where _veh is the vehicle name and x is the number of the weapon. Not sure which number it would be as it would depend on the vehicle. Share this post Link to post Share on other sites
barbuse 5 Posted April 21, 2017 23 hours ago, Flax said: Try this, it used to work back in A2. I can't test right now to check it. _veh action ["useWeapon", _veh, driver _veh, x]; Where _veh is the vehicle name and x is the number of the weapon. Not sure which number it would be as it would depend on the vehicle. I've tried on the gunner, driver as well as commander of the vehicle with weapon number from 0 to 20 but still doesn't work... I've also tried to find the weapon index using the function I found here: https://forums.bistudio.com/forums/topic/181067-how-to-find-weapon-index/ But when I call the function I get "any" as the weapon index Share this post Link to post Share on other sites
Flax 397 Posted April 21, 2017 Hmm ok, what APC classname is it? I'll take a look later. Share this post Link to post Share on other sites
barbuse 5 Posted April 21, 2017 4 minutes ago, Flax said: Hmm ok, what APC classname is it? I'll take a look later. Thanks :) I've tried with both the " B_APC_Tracked_01_rcws_F " and the " B_APC_Wheeled_01_cannon_F " Share this post Link to post Share on other sites
Flax 397 Posted April 22, 2017 Just tried it and got it to work with B_APC_Wheeled_01_cannon_F and B_APC_Tracked_01_rcws_F, the code I used was: _veh action ["useWeapon", _veh, commander _veh, 0]; 1 Share this post Link to post Share on other sites