AIDef:Query/CheckTime: Difference between revisions
Jump to navigation
Jump to search
imported>Leoetlino No edit summary |
imported>Leoetlino No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
Returns 1 if the current time is {condition} than or equal to the specified time, and 0 otherwise. | Returns 1 if the [[WorldMgr]]'s current time is {condition} than or equal to the specified time, and 0 otherwise. | ||
Example: for Hour=6, Minute=1 and ConditionType=ge, if the current time is 07:00, the query will return 1. If it is 06:00, 0 will be returned. | |||
== DynamicInstParams == | == DynamicInstParams == |
Latest revision as of 10:39, 30 October 2018
AI definition | |
---|---|
Type | Query |
Returns 1 if the WorldMgr's current time is {condition} than or equal to the specified time, and 0 otherwise.
Example: for Hour=6, Minute=1 and ConditionType=ge, if the current time is 07:00, the query will return 1. If it is 06:00, 0 will be returned.
DynamicInstParams
Name | Type | Default value | Description |
---|---|---|---|
Hour | Int | ||
Minute | Int | ||
ConditionType | String | "le" (lower than or equal to) or "ge" (greater than or equal to) |
Derived definitions
CheckTime (EventSystemActor)
No overridden parameters.