Jump to content
Sign in to follow this  
melbo

AI shooting from cover

Recommended Posts

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 by Melbo

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×