Reply To: Graph Logic Help

NodeCanvas Forums General Discussion Graph Logic Help Reply To: Graph Logic Help

#15300
Gavalakis
Keymaster

Hello Johny,

I am not 100% I understand the question, but the part where you say “repeatedly updates the closest target every half a second”, can potentially be done with an Action List set to run in Parallel, where one action is a wait 0.5 seconds and the other action is some custom action that “updates the closest target”. Here is an example of what I mean with a debug placeholder instead.
ParallelActionList

Do notice that the actions are set to “Run In Parallel”. That basically makes all actions (2 in this example) run simultaneously and the whole node is “finished” only when all actions in the list finish. You may probably want to add a “repeater” decorator above such a node to repeat the actions, which can in turn also be a child to a Parallel composite node if you want this to run simultaneously with some other branch as well.

Please let me know if that helps, or if I can help you in any further ways 🙂
Thanks!

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

Attachments:
  1. ParallelActionList.png