GetTime Shared function
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.
};