GetTimeHour

From NWN Lexicon
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