New Premium Module: Tyrants of the Moonsea! Read More
Setting a local var for 60 seconds?
I want to set a local var and delete it after 60 seconds. DelayCommand doesn't work on DeleteLocalInt. Any ideas on how to do this?
Basically, I have a special potion. The player drinks it and for 60 seconds they have double XP rewards. If they drink it again, it should reset the timer.
In my XP script I can check for if a LocalInt is set, but not sure how to get it deleted after 60 seconds unless I want to get into a bunch of calendar math. Is there a simple way to do this ?
I could deincrement on heart beat script, but wondering if there is any other ways?