Reply To: How to do this more optimally?

NodeCanvas Forums Support How to do this more optimally? Reply To: How to do this more optimally?

#11992
Gavalakis
Keymaster

Hey,

Your 2nd tree is indeed better than the 1st 🙂
I think that you can completely remove the second/middle branch though, and simply have the TriggerStay condition assigned where you now have the “isFollowing == true” condition, unless you want an “isFollowing” variable for other things that you will add down the road.

If you want some further help, or explanation of the above, please don’t hesitate to ask!
Thanks 🙂

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