OnGameTick: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Server & Client|1.0}} {{FuncDescription|Called on execution of the main thread. This is typically every frame (FPS) on clients. Tick rate on the server varies de...")
 
No edit summary
Line 9: Line 9:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
OnGameTick()
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ServerEvents}}
{{Template:GameFunctions}}

Revision as of 07:10, 13 December 2019

OnGameTick

Type: Event
Context: Server & Client
Introduced: v1.0

Description

Called on execution of the main thread. This is typically every frame (FPS) on clients. Tick rate on the server varies depending on the load. Use GetServerTickRate on the server to get that rate.

Syntax

OnGameTick(DeltaSeconds)

Parameters

  • DeltaSeconds
    Time in seconds that passed since the last tick.

Example

OnGameTick()

See also

Template:GameFunctions