Avgeris 64 Posted April 28, 2010 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
Joshii 10 Posted April 28, 2010 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
Fuzzy Bandit 10 Posted April 28, 2010 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
Avgeris 64 Posted April 28, 2010 (edited) 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 April 28, 2010 by Avgeris Share this post Link to post Share on other sites