isa_Khamdan Posted January 16, 2014 Share Posted January 16, 2014 Hello , I am wondering how can I add Timers to a table and how can I kill them all in one time? Example local Timers = {} Link to comment
Castillo Posted January 16, 2014 Share Posted January 16, 2014 local timers = { } -- Inserting a new timer to our table local timer = setTimer ( arguments ) table.insert ( timers, timer ) -- Killing all the timers: for index, timer in ipairs ( timers ) do if isTimer ( timer ) then killTimer ( timer ) end timers [ index ] = nil end 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