• Derma and Time help lol
    4 replies, posted
1.how do i get the game time in gmod lua? like the function that would work best for tracking how long time has passed, prefeably in sec 2. Is there like a derma simulator so i can know where i position buttons etc? lol thanks 3. How do i hook sprint ? thanks
1. What do you mean? Record total play time? It needs to be saved to a SQL. 2. Nonexistent is making one. It is planned to be released 5/5 3. No clue..
1. [b][url=http://wiki.garrysmod.com/?title=G.CurTime]G.CurTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] 2. There is a Derma editor being developed. 3. [b][url=http://wiki.garrysmod.com/?title=Player.KeyDown]Player.KeyDown [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] and IN_SPEED.
1. nice thanks exactly what i needed. 2. SWEEET :D (any info about time to be released) 3. I think i got this, but where is it hooked to ? give me an example hook function for this thanks. ps: Maker thats for helping me in these 2 posts
It's probably better to do this if you want to hook: [lua]hook.Add("KeyPress", "Sprint", function(ply, key) if key == IN_SPEED then print(ply:Nick().."is sprinting!") end end)[/lua]
Sorry, you need to Log In to post a reply to this thread.