SetTime Shared function

From Gothic 2 Online: Wiki
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