GetTime Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.1b

Function gets current game time.

Syntax

table getTime()

Returns

  • table: The function returns table contains game time values.

Example

addEventHandler("onInit",function(pid)
{
	local game = getTime();
	print(game.hour + " " + game.min); // it will print current hour and minute(s) in game.
};

Related functions