State Tree Help, I am not sure if I missing something, or there is a bug.

Hello, I am working on Ai using a state tree. I think my state tree is looping a state tree task before it can even attempt to finish its logic. For the basic task I am attempting, I am just searching for a random location, then moving the AI to that location. It appears however that the tasks just run indefinitely.

The behavior I am expecting

enter state

run task

task has ai move to location, upon reaching location task finish

moves to next state

What is happening.

enter state

run task

task keeps on restarting, preventing the AI from ever actually finishing the task.

I have tried setting tasks to immediately finish, but the looking behavior persists.

I have used other project files and state trees operate as expected in other project files.

This leads me to think there is either a bug? Or I am setting up state trees wrong/ I am missing something.

the task I am trying to run that restarts every frame

Don’t call finish task until you want the state tree to transition to the next task. You check your param using the on tick then call finish task on success, or use a state tree event to force it to transition.

If I have multiple state tree tasks in a single state, is “finishing” the task whats causing it to keep looping that task repeatedly? I thought I had it set to transition to the next state once the tasks were completed, but it just keeps looping the tasks even before thee get finished.