Jump to content
Sign in to follow this  
MirindoR

how do i make the ai use cannons on armor

Recommended Posts

ive been told i have to remove all the magazines and re add only the cannon ones but i have no idea how this is done, thx

Share this post


Link to post
Share on other sites

In the unit initfield,

removeAllWeapons this;

will remove all of the weapons from the unit. Then you can add back the weapons you want, e.g. for a AH-1Z:

removeAllWeapons this;
this addMagazine "750Rnd_M197_AH1";
this addWeapon "M197";

Within the editor it'll all need to go on one line, since you can't insert linebreaks into the editor dialog. But it'll still work (the semi-colon marks the end of statement, new lines are just for readability).

You can find a list of weapons here.

Share this post


Link to post
Share on other sites

okay thanks, do you know where i can find classlists for ace 2 vehicles?

in their biki there's only classlists for pla vehicles :/

Share this post


Link to post
Share on other sites

You'd have to check the ACE2 docs I suppose. They do have this list on the Biki:

http://community.bistudio.com/wiki/Class_Lists_for_ACE2

but it doesn't seem to contain information about vehicles.

Within the game, you can use (in the init field)

diag_log weapons this ; diag_log magazines this

to get a list of the weapons and magazines on the unit written to the ArmA2.RPT file, and you should be able to work out from that which ones you want to re-add. So that's a more general solution.

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  

×