Revision Difference
GM:Think#551016
<function name="Think" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Called every frame on client and server. This will be the same as <page>GM:Tick</page> on the server when there is no lag, but will only be called once every processed server frame during lag.
See <page>GM:Tick</page> for a hook that runs every tick on both the client and server.
<note>This hook **WILL NOT** run if the server is empty, unless you set the <page>ConVar</page> `sv_hibernate_think` to 1</note>
</description>
<realm>Shared</realm>
<predicted>No</predicted>
</function>
⤶
⤶
<example>⤶
<code>⤶
hook.Add( "Think", "MyCoolThinkFunction", function()⤶
-- Do something every frame/tick⤶
end )⤶
</code>⤶
</example>