Перейти к содержанию

OnUpdate

Материал из RAGE MP Wiki Archive
Версия от 01:30, 30 ноября 2019; imported>Spotify (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...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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


<syntaxhighlight lang="csharp"> [ServerEvent(Event.Update)] </syntaxhighlight>

Example

<syntaxhighlight lang="csharp"> [ServerEvent(Event.Update)] public void OnUpdate() {

   NAPI.Util.ConsoleOutput($"This should be called at the server tickrate.");

} </syntaxhighlight>