[SOLVED] Event execution check

Hi. I have a script that listens to an event in the initialize method. Can I make a check that the event is currently running? If it doesn’t, for example, can I output false to the console?

I found the information that the event execution check could not be performed. I changed the algorithm and solved the problem.