Jump to content
Sign in to follow this  
mandoble

Add a new command to A2

Recommended Posts

I know this is a quite atypical request, but might be quite interesting as several projected MMA features might relay on this.

A new command that returns the current first weapon index of a named weapon for a vehicle (the same weapon index used in "Use weapon" action:

idx = object getFirstWeaponIndex "weapon name";

_widx = my_ah1z getFirstWeaponIndex "SidewinderLaucher_AH1Z";

Share this post


Link to post
Share on other sites

MMA uses "useWeapon" action to fire missiles from non portable missile launchers (for example huds), which means that you can have gun selected as BIS weapon while sidewinders selected as MMA weapon. Which means that you can use two different joy buttons in a dogfight to fire gun or missiles. This is just a quite basic example, and it relies on useWeapon action, which also requires the exact weapon index number to be used (not weapon name).

Share this post


Link to post
Share on other sites

All for it, but would like to get a list of the weapon modes. Then just do a select 0.

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  

×