GetTimeHour
From NWN Lexicon
Contents |
[edit] GetTimeHour()
Gets the current hour.
int GetTimeHour();
[edit] Description
Returns the current hour as an integer between 0 and 23.
[edit] Version
1.26
[edit] Example
void main() { int nHour = GetTimeHour(); if (nHour != GetLocalInt(OBJECT_SELF, "nLastHour")) { SpeakString("Hour is: " + IntToString(nHour)); SetLocalInt(OBJECT_SELF, "nLastHour", nHour); } return; }
[edit] See Also
functions: |
author: Charles Feduke, additional contributor(s): Dana C., Michael Janicki