Well I tried it out, and It's really frustrating to try and understand. Do you have any other method? This creates lots of problems. 1. The destination object isn't binded to any 'prey' so multiple prey will run towards a single one is no others are nearby or something. I don't know, It all doesn't make sense to me, It's giving me a headache. How were multiple objects created to be put ontop of the prey items when there was no event stating to spawn one for each instance of prey and there was only one at the start of the layout. Also, if I were to implement wandering AI, the destination wouldn't change with it and therefore wouldn't be able to run away since It wouldn't be ontop of the destination. Any explanation or other way to do it? I hate the idea of using an object for it to pathfind to because of all these problems. >.<
I think I'm going to have a migrane from this stupid AI that I'm trying to make.
The destination object is binded to a specific prey, as it's in a container with it..
If you want the prey to wander inbetween, just pin the object to the prey and unpin it when having to run away..
You could also use the pin to rotate the prey to prevent overlapping of the destination..