i am testing some AI stuff and scripting in Lua. So i write a Ai that is following the player and trying to melee attack him. The problem is really weird.
When i am testing my Ai in the forest which i created, everything is ok. In other Areas of the map the Ai is normal too. When i am testing the AI in a part of the map where i have a building build by my self with sketch up the AI runs away?! Sometimes in the beginning he chases me than he begins to run a away after some seconds.
Can someone explain why he hates this part of the map or my building so much?
I post 2 videos to understand the problem.
Normal AI: http://youtu.be/OHUz77g3bwo
Weird AI : http://youtu.be/r07J4Wve8Jw