whats an easy way to implement this behavior?

i have  a new kind of AI behavior i want, that i’ve never needed before: “do normal AI, while avoiding an area” the specific case is doing normal predator or non-predator animal AI in Caveman 3.0 while staying away from campfires. i discovered that “campfire nearby” and “taking missile fire” are not mutually exclusive conditions, and therefore require separate AI variables to avoid conflicts. so a change to the “flee from campfire” code is called for. off the top of my head, it would seem that after deciding on a “move” the AI would have to then check to see if that “move” would place it near a campfire. if so, it would have to choose something else to do. but the more possible “moves” the AI has, the more…


Link to Full Article: whats an easy way to implement this behavior?

Pin It on Pinterest

Share This

Join Our Newsletter

Sign up to our mailing list to receive the latest news and updates about homeAI.info and the Informed.AI Network of AI related websites which includes Events.AI, Neurons.AI, Awards.AI, and Vocation.AI

You have Successfully Subscribed!