OnGameTick

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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