Jump to navigation Jump to search
- Sets mission date and time. Players joining after mission start will get the current server date including the year.
- Mission InformationEnvironment
- Example 1:
- setDate [1986, 2, 25, 16, 0]; // 4:00pm February 25, 1986
- Example 2:
- Example 3:
- Using setDate with an incorrect (like negative or exceeding) value will still work properly:
- Posted on Dec 07, 2012 - 11:10 (UTC)
- This command sets the date for the southern hemisphere only, i.e. when the map is in northern hemisphere a date [2010,12,7,17,0] is in day light and and date [2010,6,7,17,0] is in darkness.
- Posted on Oct 31, 2011 - 21:07 (UTC)
- In multiplayer, the effect of this command is local, not global. The date from the server is synchronized with clients when they join the game (including start of the mission and joining in progress). E.g. if this command is executed on server in the init.sqf before the mission starts, every client will be synchronized with server as mission is started. However, if you run this command in the middle of the mission, effect is local.
- Posted on Oct 04, 2014 - 17:43 (UTC)
- Since an unknown version of Arma 3, this command now has global effect when executed on the server.
- Posted on Apr 23, 2017 - 02:58 (UTC)
- Regarding execution in the middle of a session, the post of MulleDK13 is not entirely true. If you don't change the year, you are perfectly fine when executing the command on the server only. However, the server does not sync the year. Hence, if you do change the year, you have to execute the command on the server, clients and JIP to account for the missing sync. e.g.