it would be cool to have a ready template AI in the engine.
Not only the search path, but also a component of the system of priorities that can be expanded.
For example, it can be done like so:
1) The added component AI to the character.
2) select the actions component (to walk, to patrol, to sleep...).
3) set priorities for each action.
4) install the breaker for action.
5) ....
If you are interested, we can consider all the details .