Gamemode.Tick

From GMod Wiki

Revision as of 15:03, 4 October 2010 by Noiwex (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameTick
SyntaxGM:Tick( )
DescriptionLike Think except called every tick on both client and server.
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.Tick]Gamemode.Tick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionPrints a line of text server tick.
Used onNewerShared.png
Code
 
function SecondPrint()
        Msg("This is printed every server tick\n")
end
hook.Add("Tick", "SecondPrint", SecondPrint)
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox