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:
1
2
3
4
5
6
7
8
9
10
[EventReceiver("MyEventName")]
publicclassMyTask:ConditionTask{
//Same name as the EventReceiver attribute parameter and of course the event name send.
voidMyEventName(List<GameObject>list){
//stuff...
}
}
Let me know if that helps, or if you have any ideas to suggest of course.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.