Jump to content
Sign in to follow this  
barbuse

IA firing countermeasure

Recommended Posts

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

I've tried several other variants but still can't get it to work :/

Share this post


Link to post
Share on other sites

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
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

Hmm ok, what APC classname is it? I'll take a look later.

Share this post


Link to post
Share on other sites
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

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];

 

aca74fcfa6fdb84fecb512ac135b7c12.gif

 

  • Like 1

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
Sign in to follow this  

×