Reply To: Send Event Playmaker check event Nodecanvas

Forums 💬 NodeCanvas ⚙️ Support Send Event Playmaker check event Nodecanvas Reply To: Send Event Playmaker check event Nodecanvas

#18050
Gavalakis
Keymaster

    Hey,

    Events send to NodeCanvas can be checked, by using the NodeCanvas condition named “Check Event” found under the “Utility” category.
    This condition, like all the other, can be assigned to nodes that accept conditions. Such nodes include the Interrupt Decorator as well as the Conditional Decorator.

    In the following simple example tree, we have a Selector which will first execute the “Wait 999 seconds” action. If *while* this action is running an event named “MyEvent” is send to this BehaviourTree (or it’s owner) by any means, the Interrupt Decorator, will interrupt the action and return Failure back to the Selector. Thus the Selector will then proceed to the next action (Log Text) and Log “OK” to the console.

    [attachment file=”InteruptByEvent.png”]

    Let me know if that helps.
    Cheers.