Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

X2Time

Globals

X2Time

X2Time

Classes

Class: X2Time

Method: GetGameTime

(method) X2Time:GetGameTime()
  -> am: boolean
  2. hour: number
  3. minute: number

Retrieves the current game time.

@return amtrue if the time is AM, false if PM.

@return hour — The hour of the game time.

@return minute — The minute of the game time.

Method: GetServerTime

(method) X2Time:GetServerTime()
  -> serverTime: Time

Retrieves the current server time.

@return serverTime — The server time.

See: Time