FSM Communication

NodeCanvas Forums Support FSM Communication

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13323
    atmuc
    Participant

    I have 2 FSM owner. How can I send a message/trigger from one to other? You can assume FSMOwnerA is for the menu. when a button clicked I will send an information to FSMOwnerB. Is there any global messaging system in NodeCanvas?

    #13338
    Gavalakis
    Keymaster

    Hello again,

    You can simply use the “Send Event” (or “Send Event“) action task and specify the “GraphOwner” (like an FSMOwner is) that will receive the event by overriding the agent like shown in the image bellow:
    SendEvent

    The “Send Event” action also has a “Send Global” option, if you want all GraphOwners to receive the event rather than a specific one.

    The FSMOwner that needs to respond to the event (FSMOwnerB), needs to have a “Check Event” condition (with “Event Name” being the same as the send event name of course).

    Let me know if that works for you.
    Thanks.

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

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.