Changing "states" for my agents

Hi! I started using A* Pathfinding Project package not long ago and so far it went really smooth for my needs. I added wandering agents that are currently working as intended.

I added a way to detect my player while they are patrolling and I was wondering if there is an easy way that I am missing from documentation that will allow me to change my agents behavior from “wandering” to chase / follow player?

Thanks a lot!

So, on it’s own, A* can’t be used to build a state machine or AI actions. You’ll have to write that part yourself/with another asset. If you need some pointers, I’m happy to help with that. But Astar is mainly just for moving the units rather than telling them “when to move”.

1 Like