Gamemode.Tick

From GMod Wiki

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