Trying to figure out why gets stuck in wait. all wait has on it is a random from 3, 7.. I thought if player gets out of view then it will go back to wander but this didn't work for me.
I have some youtube example and the tree and it's settings. The walls are layer Wall, ground is Floor, we have a player with tag Player. Enemy set to Layer Enemy.
The end goal would be enemy is wandering around trying to find player. when spotted run up to player hit and run to near wall to hide from players view and go back looking for player and continue. later on i'd like to have it say if player goes to attack it goes and runs away. maybe a sub tree idk. but i'd like to solve the basic flow first.




I have some youtube example and the tree and it's settings. The walls are layer Wall, ground is Floor, we have a player with tag Player. Enemy set to Layer Enemy.
The end goal would be enemy is wandering around trying to find player. when spotted run up to player hit and run to near wall to hide from players view and go back looking for player and continue. later on i'd like to have it say if player goes to attack it goes and runs away. maybe a sub tree idk. but i'd like to solve the basic flow first.



