Description
Checks whether the current in-game time is within the given time range expressed as HHMM integers (0000 ~ 2359).
If F1 <= F2, the range is treated as a normal same-day range (e.g., 0800 ~ 1700).
If F1 > F2, the range is treated as an overnight range that wraps across midnight (e.g., 2300 ~ 0400).
Parameters
| Parameter | Description |
|---|
| BaseObject | Not used. |
| CompareType | Supported compare types: Equal, NotEqual |
| F1 | Begin time expressed as HHMM integer (0000 ~ 2359) |
| F2 | End time expressed as HHMM integer (0000 ~ 2359) |
Examples
| Description | BaseObject | Command | CompareType | F1 | F2 |
|---|
| Checks whether the current time is between 08:00 and 17:00. | | TimeRange | Equal | 800 | 1700 |
| Checks whether the current time is outside the range 09:00 ~ 18:00. | | TimeRange | NotEqual | 900 | 1800 |
| Checks whether the current time is between 23:00 and 04:00. | | TimeRange | Equal | 2300 | 400 |