I was following one “simple ai” tutorial on youtube and everything from there is working fine, but I got an idea and cannot implement it. My enemy is by default wandering around and when he sees player, he starts to follow him. If player leaves enemy sight range, he gets back to “wandering around” behaviour. I was trying to make enemy freeze for a moment when he looses player from sight range, like he is thinking what to do next. Unfortunately the enemy is going back to “wandering around” immediately, even while “wait” node is on the very left side of the behaviour tree. Does anyone know some way to make this work? Thanks for any help!
Here’s the behaviour tree of that enemy: