Forum

> > CS2D > Scripts > Lua timer
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua timer

1 reply
To the start Previous 1 Next To the start

old Lua timer

omg
User Off Offline

Quote
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

old Re: Lua timer

Yates
Reviewer Off Offline

Quote
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
Log in to reply Scripts overviewCS2D overviewForums overview