#listening on multiple concurrent events?

5 messages · Page 1 of 1 (latest)

severe hollow
#

I got two events firing in my game and I need to wait for both
A bad solution I thought of is having a system that listens for the two events, then fires a third event when getting the two events it listens to, then resets the 'listening' state

is there a less hacky solution for this?

light mesa
#

what do you mean by 'wait'?

drifting rampart
#

maybe adding marker components when receiving events so when both are there a dedicated system can match its query and do its thing ?

light mesa
#

i don't see why you can't just use two eventreaders and maybe an extra Local

severe hollow
#

ok cool just making sure my intuition is correct