Jump to content
Sign in to follow this  
KingLouie2

AI Fire Countermeasures

Recommended Posts

Hi Guys,

Have searched high and low but found nothing.

Basically I will tell you what I am going for and I am sure someone will be able to help :-)

I want an A-10 to fly over a compound and fire a countermeasure, then activate the radio to confirm the target (being the compound). The A-10 to return hot and unleash fury on the blighters.

Basically I can do everything else but can't find any information on getting and AI controlled aircraft to fire countermeasures. Can this be done?

Thank you for your help

Louie

Share this post


Link to post
Share on other sites

The number at the end is the weapon being fired.

10,11,12 countermeasures

0,1,2,3,4 main gun

5,6,7,8,9 rockets,bombs

vehname  action ["useWeapon",vehname,driver vehname,10];

Share this post


Link to post
Share on other sites

thanks - i was also struggling with forcing AI to fire countermeasures

it appears that your ref above to 10,11,12 works for the A10's

Apaches and other choppers have different listing

trial and error got this to work

chop action ["useWeapon",chop,driver chop,1];

multiple lines of it in a waypoint only seem to fire once, meh.

its a start thanks for the pointer.

Anyone know a reference where weapons are listed for the other aircraft?

  • Like 1

Share this post


Link to post
Share on other sites

Yes different vehicles use different numbers.

You can find the listings yourself by creating a repeat trigger.

radio alpha

0,0 size

condition

 loop

on act

   loop=false;chop action ["useWeapon",chop,driver chop,inc];hint format ["Weapon number %1",inc];inc=inc+1

on Deac

loop=true;

put inc=0;loop=true; in a game logic or unit init.

now every time you use radio alpha it will fire the weapon once and then increment the number so it will fire a different weapon next time and report the number.

The other thing to remember is that use gunner or commander depending on the vehicle being used.

You can also specify which turret does the firing tank example

http://forums.bistudio.com/showpost.php?p=1842272&postcount=6

Edited by F2k Sel

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  

×