Closed evilenzo closed 9 months ago
Well there is the "Repeater" decorator. What kind of functionality are you missing exactly?
Conditions would be great. I think it should have opportunity to use custom script
Also as I can see it applies only for one leaf and what if I want to repeat some leaves sequence?
Conditions would be great. I think it should have opportunity to use custom script
I will look into it.
I think you could use sequences to have more leaves looping.
I think I understood your idea so the issue can be closed
This is my fault I don't understand flow correctly. I just had signaling exit node in the end of sequence so sequence worked exactly one time. Without it sequence will loop like I expect
But wait. What if I want a sequence that executes every leaf exactly once with such logic:
Oh well, I checked sequence logic but let me check again...
It seems like SimpleParallel does what I want but the naming can be misleading. It is not actually parallel
But wait. What if I want a sequence that executes every leaf exactly once with such logic:
- Fail if any of leaves fail
- Succes if ALL of leaves success
- Go to next leaf if it is RUNNING
Oh yes, Simple Parallel
is exactly what you want. The naming can be somewhat misleading, indeed! The node is somewhat unstable #38 and I am not sure if all policies work correctly right now. If you encounter any problems, make sure to report the bug on #38 and/or dive in the code and try to fix it yourself. Didn't have time to implement proper unit testing (yet)
Everything works ok but we probably should rename it to something more clear
Because it looks like it is more a loop node instead of parallel
Everything works ok but we probably should rename it to something more clear
I didn't come up with this name! It is a standardized name for this type of composite (as seen in Unreal Engine for example) and if you think about it, all leaves are executed "side by side" before this node returns a value. A Sequence performs them after each other. (Well a Parallel technically does that too, but you get the concept)
Title speaks for itself. It's kinda hard to make loops rn. I know that classic BT doesn't have this but such feature seems reasonable