Jump to content
Devastator_cm

AI not breaking waypoint during combat

Recommended Posts

Hi Guys,

I have a mission where AI groups are patrolling on foot and by btr.
When enemy shots some other AIs around, the on foot patrol starts moving to that direction but BTR still follows its patrol area without breaking the waypoints. Any idea? When I check with command findNearestEnemy both AI groups knows the enemy though..
I want my AI to stop its move waypoints and first engage the enemy before doing patrol again.

 

Share this post


Link to post
Share on other sites

Do the BTR have it's behaviour as "Careless"? That would explain why it doesn't engage.

Share this post


Link to post
Share on other sites

In that case they will engage, but continue making their way along the waypoints.  You would need to explicitly give them a seek and destroy waypoint to activate when they detected enemies, and then switch them back to their normal waypoints once the enemies are gone.  There are a number of ways to do this, but none are that simple.  I would say a solution using "Skip Waypoint" triggers (I think that's what they're called... used to be "SWITCH") is probably the simplest.

You may have some luck also if you set them to "Open Fire" instead of the default "Open Fire, Keep Formation"  (these used to be called "Open Fire, Engage at Will", and "Open Fire", [reversed] which makes things confusing to say the least).  You may need to do some testing to determine under what circumstances the units will abandon waypoints to go after enemies.  That may suffice instead of using any seek-and-destroy waypoint switching.

Share this post


Link to post
Share on other sites

I tried also open fire even set the combat mod to RED by command but it still keeps driving between WPs.. :(

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

×