Forum

> > CS2D > Scripts > Lua timer
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua timer

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua timer

omg
User Off Offline

Zitieren
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?
3× editiert, zuletzt 22.08.17 21:36:00

alt Re: Lua timer

Yates
Reviewer Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht