View Single Post
05/27/15, 11:20 PM   #5
Luxor
 
Luxor's Avatar
Join Date: May 2015
Posts: 7
Red face

So I tried doing what you said but I'm afraid I'm utterly lost.

My current .lua file looks like this:
Lua Code:
  1. timestampA = GetTimeStamp("start")
  2. timestampB = GetTimeStamp("now")
  3. elapsedSeconds = GetDiffBetweenTimeStamps(now, start)
  4. counter = 1
  5.  
  6. function TimerUpdate()
  7. TimerCounter:SetText(string.format("Timer: %d", elapsedSeconds))
  8. counter = counter + elapsedSeconds
  9. end
  10.  
  11. function TimerInitalized()
  12. end

I'm certain that my code above is not even close to being correct and as for the event trigger, I'm not exactly sure how to implement it as my knowledge on custom events and callbacks is extremely limited.

Y' know the saying teach a man to fish and all that...

Well I thought it was a good idea to sail straight off into the middle of the Pacific Ocean to teach myself to fish...I didn't catch a single thing and I drowned miserably.

I think I'll just lick my wounds and try fishing at a pond for the moment.

Last edited by Luxor : 05/27/15 at 11:24 PM.
  Reply With Quote