Code:
function onLoad()
self.setValue(120)
end
function onPlayerTurnStart()
self.setValue(120)
self.Clock.paused = false
end
So I have this script inside of a timer, though whenever it switches to someone's turn it starts counting down from 1:59 instead of 2:00.
In order to make it work as intended, I'm needing to add a second to the setValue value from 120 to 121.
So the second function becomes this:
Code:
function onPlayerTurnStart()
self.setValue(121)
self.Clock.paused = false
end
Why is this? Is this a bug or something I'm doing wrong here?