English Lua timer

1 reply
Goto Page
To the start Previous 1 Next To the start
22.08.17 08:18:17 am
Offline Off
I don't know very much about embedding lua, and recently I was wondering how DC implemented the timer function, since it's not a default thing. Does anyone have any idea?

Also, what is the lua embedded into in the case of cs2d? Also...this has been bugging me for a while. How do I make some code or function run sequentially in lua?
edited 3×, last 22.08.17 09:36:00 pm
will code for food
22.08.17 11:21:35 am
Offline Off
Probably uses the timestamp of the OS, saves the timer time and beginning timestamp in the memory and checks if the time will pass every millisecond.

That's my logical guess.
To the start Previous 1 Next To the start