SetTime: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
This function sets the world time. | This function sets the world time. | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} | {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} | ||
Latest revision as of 20:52, 27 November 2019
This function sets the world time.
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);