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

#12403
Gavalakis
Keymaster

Hello there,

Sorry for the late reply.
If I understood correctly based on your 3rd post explanation, the following image shows the pattern that you are probably after, where the key node used here, is the Parallel Composite:
ParallelPattern

– The first node is a Conditional Decorator and simply checks a condition to allow “passage” or “access”. A pre-condition.
– The Parallel node here is key, because it evaluates all it’s children in parallel and as such, both the Condition Node and Action Node (it could be a Sequencer node of course) are evaluated together. As soon as the Condition Node returns Failure, the Parallel node will bail out in Failure too, because it is set to use the “First Failure” policy as well as it is set to be Dynamic (so that the condition is continuously evaluated).

Please let me know if that is indeed what you were after, or whether or not you have any questions about this.
Thank you!

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. ParallelPattern.png