Jump to content
Robin Withes

Having issues with AI patrolling

Recommended Posts

Hi,

i've been scripting in arma for about a year now but i have never worked with AI before, im currently making something that requires AI to move in a vehicle around some waypoints randomly while undisturbed. When they do get disturbed i can manage them to fight the players disturbing them but i am having difficulties detecting when the fight is over and getting them back into their car and back patrolling when it is.

It has to be done via SQF since i spawn them in and handle them with it already.

 

 

Any help,suggestions,code snippets or anything would be greatly appreciated!

Share this post


Link to post
Share on other sites

How do you check if they are disturbed or not?

You can check their behavior with this command:

https://community.bistudio.com/wiki/behaviour

Their default behaviour is usually AWARE. After they have spotted an enemy, it changes to COMBAT. Once they forget about their enemies(~ 3 minutes when the enemy is out of sight, must be fastrer if they just kill all enemies) the behaviour switches back to AWARE and you can order them to get into their vehicles.

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

×