diff --git a/Basalt/objects/Timer.lua b/Basalt/objects/Timer.lua index 09585e5..9d2b575 100644 --- a/Basalt/objects/Timer.lua +++ b/Basalt/objects/Timer.lua @@ -19,6 +19,10 @@ return function(name, basalt) return self end, + getTime = function(self) + return timer + end, + start = function(self) if(timerIsActive)then os.cancelTimer(timerObj) @@ -43,6 +47,14 @@ return function(name, basalt) return self end, + setStart = function(self, start) + if (start == true) then + return self:start() + else + return self:cancel() + end + end, + onCall = function(self, func) self:registerEvent("timed_event", func) return self