You can replicate what you are after with a Repeater Decorator and an Accessor Decorator underneath.
For this you should set the Repeater in “Repeat Until Success”.
So the Repeater will repeat the child node (Accessor) until it returns Success.
You could certainly create a single node that does that. Let me know if you want such a node.
In my battle scene, be a game controller and some roles, they all based on NC.
Game controller need to call roles to do something and need to know when it finished. So it is need a node “Wait Until Condition”.
I built a node like upper replay, has a event string property.If the event is ture return success else run forever.
It works well like follow photo.
Nice 🙂
So it’s more of a wait event action task.
You could also make a specialized node (not task) that can be assigned a condition and that node return Running until the assigned condition returns true, os it could be more flexible as of what condition it waits for.
There is already a Decorator called “Wait Until” (waits until the condition becomes true), which was non-existent when this thread was started 🙂 It’s the last one in the Decorators menu. You can use it instead of the suggestion posted above.
“Accessor” Decorator, was the name of the now named “Conditional Decorator” at the time of this threat.
So Accessor Decorator = Conditional Decorator 🙂
Let me know if the ‘Wait Until’ Decorator works for you.
Cheers!