• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Any way to check if a user event exists?

A

anomalous

Guest
I'm replacing some terrible code with slightly less terrible code, and I would like to run an user event if it exists.
The issue is there are a lot of objects and prior to this, it was set with a flag...and those not needing to run anything did nothing, those that triggered from the flag, had code in them.
I'm moving that code to a user event, but I don't necessarily want to add an empty event for every object.

Do I have a choice?
 

jo-thijs

Member
So, you don't need to check if there's a user event,
but you just don't want anything to be executed when you ask to execute an empty user event?
Well, that's already what happens.
 
Top