Make a wish
I want to make a spell that uses a global timer instead of a separate timer for each spell casted which gets created and destroyed constantly. At the same time, I don't want the timer to run every 0.03 seconds if no spells were casted(may cause a bit of unneeded lag). So I wanted to use a boolean that is enabled when a spell is casted and disabled when no spells are being casted. When the boolean is set to false I want to Pause my timer but I have no clue of how to find out when to enable it again. I thought of maybe using events to detect when the boolean is false or something but Im afraid using another trigger would actually be worse than just having the timer constantly run. Anyone have any suggestions on how to do this?