OnUpdate

From RAGE Multiplayer Wiki
Revision as of 01:30, 30 November 2019 by Spotify (talk | contribs) (Created page with "This event is used for iterating code at server's tickrate. {{CSharpContainer| {{#tag:syntaxhighlight| [ServerEvent(Event.Update)] |lang=csharp }} {{Example}} {{#tag:syntaxh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This event is used for iterating code at server's tickrate.


C# Syntax

[ServerEvent(Event.Update)]

Example

[ServerEvent(Event.Update)]
public void OnUpdate()
{
    NAPI.Util.ConsoleOutput($"This should be called at the server tickrate.");
}