alberto2345 Posted November 22, 2015 Share Posted November 22, 2015 Hello, I'm making a script with a few timers in it. One thing I'm not sure on is if I nil the variable that has the timer stored in it once I'm finished with it, would I still need to do killTimer before I nil it or is just making the variable nil already do enough? Currently I'm killing the timer and then nilling the variable. I'm mostly just worried about the timer still being active in some way if I "cut corners". Thanks. Link to comment
Addlibs Posted November 22, 2015 Share Posted November 22, 2015 As far as I know, once a timer finishes executing (unless it's infinite) it kills itself automatically, and just needs to be unassigned from the variable. I may be wrong though. Link to comment
myonlake Posted November 22, 2015 Share Posted November 22, 2015 You don't need to kill or unassign the timer once it's finished. It's nilled automatically like any other element. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now