I’m fairly new to behaviour tree’s and I can’t find anything that helps online for my issue.
I have a AI character that has 4 states (Idle, Follow Player, Roam, Search for Point Of Interest). I have successfully been able to set up a way of switching between the 4 without too much hassle but now I’m having issues trying to get the character to go to a location (point of interest) that has been set by a previous step in the sequence.
The sequence currently is:
- Clear / Reset last P.O.I found
- Search for random location
- Move To random location
- Check If there’s a P.O.I nearby (If so Set the location)
- Sequence with a decorator to check if a location has been set
- Move To P.O.I
- Wait
I’m pretty sure that everything is being set correctly as blackboard values change accordingly when previewing them in the behaviour tree window but whenever it gets to Move To P.O.I it just gives up and restarts the sequence. If I take out the Move To it flows to the wait and works perfectly fine as it should.
I’ll post images in a comment below.