I have a FSM that does a bunch of stuff, including using a nested behavior tree multiple times. The behavior tree is the same one every time, but I need it to run once and finish each time. However, I haven’t been able to get this to work because if I set the execution mode to Once, it only runs the first time the nested behavior tree called and skips over all the other times it gets called (presumably because it realizes it already run that behavior tree once). Of course, if i set it to Repeat, never finishes (because it is repeating forever).
How would I ‘reset’ the behavior tree so that it does run only once every time my FSM calls it, or how would you suggest doing this otherwise?
I have just tryed recreating what you have in your screenshot with a SubTree that has a Sequencer with a wait node for example, and it is working correctly, in that none of the SubTree states (same BT reference) is being skipped.
Can you please post a screenshot of the contents of that SubTree (or a similar one which results in the same behaviour)?
Could it be that the SubTree has some condition which immediately results to the SubTree being finished and thus look like it being skipped?
Please let me know.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.