Jump to content
Sign in to follow this  
Avgeris

Use of specific vehicle weapon

Recommended Posts

How can I make an AI tank fire only its cannon instead of the commander firing or the gunner using the machine-gun?

Share this post


Link to post
Share on other sites
How can I make an AI tank fire only its cannon instead of the commander firing or the gunner using the machine-gun?

Have you tried simply removing the other weapons?

Share this post


Link to post
Share on other sites

You can put certain code in the Initialisation box of the AI Tank to remove weapons and magazines (ammo) from the vehicle.

Let's say I want to remove the main cannon ammo from a T-90. In the Initialisation box of the unit I would put:

this removeMagazine "22Rnd_125mmHE_T72";

Using removeMagazine is probably better, as I'm not sure about how removing weapons copes with vehicles. Also, tanks might have multiple magazines as well, if they do, just type the code out twice.

A full list of all the Vehicle Weapon and Magazine 'classnames' are listed here. Down the right hand side it tells you which Vehicles (by their 'classname') use each weapon.

Share this post


Link to post
Share on other sites
You can put certain code in the Initialisation box of the AI Tank to remove weapons and magazines (ammo) from the vehicle.

Let's say I want to remove the main cannon ammo from a T-90. In the Initialisation box of the unit I would put:

this removeMagazine "22Rnd_125mmHE_T72";

Using removeMagazine is probably better, as I'm not sure about how removing weapons copes with vehicles. Also, tanks might have multiple magazines as well, if they do, just type the code out twice.

A full list of all the Vehicle Weapon and Magazine 'classnames' are listed here. Down the right hand side it tells you which Vehicles (by their 'classname') use each weapon.

thank you, very helpful and hind. I m gonna check it

Edited by Avgeris

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  

×