Robin Withes 0 Posted January 12, 2018 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
Sparker 185 Posted January 12, 2018 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
Robin Withes 0 Posted January 12, 2018 Thank you, i'll get around testing it later today. Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted January 12, 2018 You can also use lockWP for this, when set to true the waypoints will remain but will be ignored by the AI. Cheers 2 Share this post Link to post Share on other sites