SetTime: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function sets the world time. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} === Required Arg...")
 
No edit summary
Line 1: Line 1:
This function sets the world time.
This function sets the world time.
==Syntax==
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}}
=== Required Arguments ===
*'''hours:''' parameter input should be in '''int''' type
*'''minutes:''' parameter input should be in '''int''' type
*'''seconds:''' parameter input should be in '''int''' type


==Example==
==Example==
{{CSharpContainer|
{{CSharpContainer|
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}}
{{Parameters}}
{{Parameters}}
*'''hours:''' parameter input should be in '''int''' type
*'''hours:''' parameter input should be in '''int''' type
Line 18: Line 9:
*'''seconds:''' parameter input should be in '''int''' type
*'''seconds:''' parameter input should be in '''int''' type


{{Example}}
Set time to 23:15.
Set time to 23:15.
{{Example}}
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
{{Template:CSharp_Serverside_namespace}}World.SetTime(23, 15, 0);
{{Template:CSharp_Serverside_namespace}}World.SetTime(23, 15, 0);

Revision as of 20:52, 27 November 2019

This function sets the world time.

Example

C# Syntax

void NAPI.World.SetTime(int hours, int minutes, int seconds);

Parameters

  • hours: parameter input should be in int type
  • minutes: parameter input should be in int type
  • seconds: parameter input should be in int type

Example

Set time to 23:15.

NAPI.World.SetTime(23, 15, 0);