State Tree Delay Task not working

So, this is what I think is happening.

I have recreated the setup you have with a short task (called Shortus), a long task (called Longus) and a very short task (called Cat). Don’t judge me please. :stuck_out_tongue:

st v1

  • State Selection is happening
    • Selector states (states with children or “leaf states”) cant be selected directly
    • Leaf 1 can be selected, so it is selected
  • Active states: Leaf 1 and Selector
  • ALL tasks of Leaf 1 and Selector start running concurrently
  • Cat task is very quick, Longus takes a while.
  • When Cat finishes, the transition is triggered. The transition for Cat is to go to Leaf 1
  • For SOME reason Cat is not run again, but keeps triggering the transition to Leaf 1 over and over again

You can “solve” this by not executinga Finish Task Node on Cat. Then the the Leaf 1 is run, then Leaf 2, and it repeats the tree, but for some reason never runs Cat again.

If you instead remove the transition from the Selector, it will start Cat over and over again.

Yeah, I tried to figure it out for like an hour now, with no success.

2 Likes