Feedback on basic wander-seek behavior

7Dev

New member
Is this a good way to implement wander-seek behavior? I'm sure it can be improved for performance, but I'm mostly interested if I could achieve the same result with fewer tasks.

I check for vision/tact on the left branch and update the nearest target. On the right branch, I set the AI to wander if the target is null and to seek if the target is not null. It is supposed to be a forever loop at the moment, where the AI is always either wandering or seeking.




Untitled.png
 
Top