Reply To: How to implement FSM Trigger?

NodeCanvas Forums Support How to implement FSM Trigger? Reply To: How to implement FSM Trigger?

#14793
Gavalakis
Keymaster

Hello,

I think that what you are after are sending events to the FSM graph and checking those events on transitions.

You can check events with the “Check Event” condition task which can be added on an FSM transition similar to all other conditions.

Then to “trigger” that event, you will have to use fsmOwner.SendEvent(string eventName); in your code, or alternatively use the included Action called “Send Event” (which basically does that exact same thing). Remember of course that the event name sent and checked have to be the same.

Let me know if that is what you were after.
Thanks.

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