What happens if I send 'massive' number of Event or Signal to one graph?

NodeCanvas Forums Support What happens if I send 'massive' number of Event or Signal to one graph?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16051
    whitedoggy
    Participant

    Hi.

    I have something like ‘master – slave’ structure in my game.

    master is only one but slave could be many. and when slave die, if will send event to master.

    problem is occur when multiple slaves die in same time(or same frame).

    I hoped I could receive all of those events but what I’ve got is only two of them. Result of using signal instead is also same.

    What I want to know is “Can I use send many events to one receiver simultaneously?”

    However, my experiments says ‘only two’.

     

    Slave

    this is slave

    Master
    this is master

    Attachments:
    You must be logged in to view attached files.
    #16057
    Gavalakis
    Keymaster

    Hello there,

    Unfortunately what you want to do is not really possible in this way. Condition tasks (check event in this case) are evaluated once per frame and if they are true the transition takes place or in this case the parallel node continues to the Log action.

    This works the same for all conditions here. For example, if you have a condition waiting for a physics collission event, even if the collision takes place multiple times in the same frame, only once will the condition become true per-frame for the purposes of making a transition or in the case of the parallel fire up the actions. The event conditions also work the same.

    So once again, this is unfortunately not possible in the way FSMs work.

    Thank you!

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

    #16060
    whitedoggy
    Participant

    Thanks. that is unfortunate!

    Could you advise me any other way to achieve my want, please?

    It is totally okay if you don’t know!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.