This AI is still in early stages of development.
Time Constants
A few constants to make working with times more semantic...
Months
The following constants can be used when working with the Javascript Date object, to specify a specific month:
JAN,JANUARYFEB,FEBRUARYMAR,MARCHAPR,APRILMAYJUN,JUNEJUL,JULYAUG,AUGUSTSEP,SEPTEMBEROCT,OCTOBERNOV,NOVEMBERDEC,DECEMBER
Millisecond conversions
If you're working in milliseconds, these constants are useful:
SECONDS– eg.12*SECONDSwould give a value of 12000 millisecondsMINUTES– eg.5*MINUTESwould give a value of 300000 millisecondsHOURS– eg.1*HOURSwould give a value of 3600000 milliseconds
Second conversions
If you're working in seconds, these constants are useful:
SECS– eg.12*SECSwould give a value of 12 secondsMINS– eg.5*MINSwould give a value of 300 secondsHRS– eg.1*HRSwould give a value of 3600 seconds
Notes
In Warzone 3.1, setMissionTime() and setReinforcementTime() used time units of 1/10th of a second, which sounds odd until you realise that's the interval of a game tick and also the update rate of gameTime. It was very confusing unit to work with, so in Warzone 3.2 the functions were updated to use seconds instead.