melbo 3 Posted May 26, 2014 (edited) Can anyone shed some light on how they got the AI to shoot from cover in the campaign mission "Moral Fiber". It's the part where you have to assist pinned down friendly troops. I've looked through the mission file itself but it's way beyond what I can understand! Any help appreciated. This is the part I'm talking about: Edited May 26, 2014 by Melbo Share this post Link to post Share on other sites
barbolani 198 Posted May 27, 2014 I think that part is made with animations, AI is not really shooting another AI, it's just an scripted AI fixed to a point, ordered to make an anim, and ordered to fire while is doing the anim, on certain frecuency. Share this post Link to post Share on other sites
melbo 3 Posted May 27, 2014 Correct, I can get them to play the animation (only once though) but not actually "shoot" and reload like they do in the mission. Was looking at the script they used and it just blew my mind :P Share this post Link to post Share on other sites
barbolani 198 Posted May 29, 2014 there is a premade function made by BIS which makes the units loop that kind of animations until the unit finds an enemy: bis_fnc_combatAnim orsomething like that. Check the funcions viewer. Share this post Link to post Share on other sites