Reply To: Expressing behaviours and state changes in BTs

NodeCanvas Forums General Discussion Expressing behaviours and state changes in BTs Reply To: Expressing behaviours and state changes in BTs

#9235
Gavalakis
Keymaster

Well, there is a simple event system in there (I like simple). In practise you can check an event with a condition and send and event in many different ways, the simplest being the SendEvent action, but you can send an event from within any action/node or just directly through the GraphOwner or the Graph itself.

In the example tree above the first Accessor’s condition is a CheckEvent (“if [Attacked]”).
You could send that [Attacked] named event somehow (eg: owner.SendEvent(“Attacked”) or SendEvent Action) and the Dynamic Selector would respond.
Keep in mind that an event is true only for one frame.

So in practise it’s just like another condition. Of course in the context of BTs the tree will still be evaluated hierarchicaly 🙂

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