SetTime Shared function

From Gothic 2 Online: Wiki
Revision as of 15:25, 2 April 2018 by Patrix (talk | contribs) (Related functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function was added in version: 0.1b

Function sets time in game.

Syntax

void setTime(int hour, int min)

Required Arguments

  • hour: The value of the hour (Range 0-23).
  • min: The value of the min(Range 0-59).

Example

addEventHandler("onInit",function()
{
	setTime(22,30); // when server will start, time in game wil be 22:30
};

Related functions