Reply To: FSM Send Event with Multiple parameters

Forums 💬 NodeCanvas 🗨️ General Discussion FSM Send Event with Multiple parameters Reply To: FSM Send Event with Multiple parameters

#14241
Gavalakis
Keymaster

    Hello,

    There is indeed a plan to allow more parameters in events yes, but can’t promise as of when this will be ready.
    If you want to pass 4 gameobjects, then probably the best way to do it, would be to use a List<GameObject> using SendEvent<List<GameObject>> as a parameter and then use a CheckEvent<List<GameObject>> and finally save the list to the blackboard.

    If you want to handle the event manually (which seems better in your case), you can create a custom task and use the [EventReceiver] attribute. Here is an example:

    Let me know if that helps, or if you have any ideas to suggest of course.
    Thanks.