how can I make it so that if the AI arrives at a patrol point, it starts walking randomly and after a while returns to the patrol point?
here is the blueprint for the patrol system:
the Behavior Tree:
how can I make it so that if the AI arrives at a patrol point, it starts walking randomly and after a while returns to the patrol point?
here is the blueprint for the patrol system:
the Behavior Tree:
Ah, Behavior Trees.
Can’t help you there. I code AI manually.
But, logically speaking:
you could probably reuse some code here, have a node ‘find move location’, in the node check if it wants a patrol or random location and return it.
keep move to as a separate node which you have already instead of patrol node and a moverandom node.
just in case you mean how to find a random location there is a function called getrandomlocationinreachableradius()
thanks, that worked perfectly!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.