Reply To: BT sequence of actions that starts&restarts when receiving a specific Event

NodeCanvas Forums Support BT sequence of actions that starts&restarts when receiving a specific Event Reply To: BT sequence of actions that starts&restarts when receiving a specific Event

#12394
timv
Participant

I guess I’d like to have an easy way to get this pattern:
– Some starting condition
– A sequence of actions (the ‘plan’)
– Some continue condition
The continue condition should only be evaluated when the plan is running. If the condition fails while running, the plan should be reset and starting condition + plan should be reevaluated. This would then possibly restart the plan.

I guess I could make a node that is similar to Interrupt, but instead of returning failure it would reset the decorated connection before executing it. Is there any other obvious way that I’m missing to implement this pattern?