GetTimeHour

From NWN Lexicon
Revision as of 09:04, 4 December 2017 by 100.38.26.129 (talk) (Undo revision 33753 by 209.160.115.183 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



GetTimeHour()

Gets the current hour.

Description

Returns the current hour as an integer between 0 and 23.



Version

1.26

Example

void main()
{
    int nHour = GetTimeHour();
    if (nHour != GetLocalInt(OBJECT_SELF, "nLastHour"))
    {
        SpeakString("Hour is: " + IntToString(nHour));
        SetLocalInt(OBJECT_SELF, "nLastHour", nHour);
    }
    return;
}

See Also

functions: 

SetTime



 author: Charles Feduke, additional contributor(s): Dana C., Michael Janicki