setDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(The effect is completely local when used in a mutiplayer game. However, joining clients synchronize date from server (including stat of mission and when joining in progress))
No edit summary
Line 36: Line 36:




In multiplayer, the effect of this command is local, not global. However, 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. --[[User:Osmo|Osmo]] 21:35, 31 October 2011 (EET)
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. --[[User:Osmo|Osmo]] 21:35, 31 October 2011 (EET)


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 21:41, 31 October 2011

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sets the actual mission date and time.
Groups:
Uncategorised

Syntax

Syntax:
setDate [year, month, day, hour, minute]
Parameters:
[year, month, day, hour, minute]: Array
Return Value:
Nothing

Examples

Example 1:
setDate [1986, 2, 25, 16, 0]

Additional Information

See also:
date

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

This command is special in that it is "smart". If you add 120 minutes, for example, it will actually advance hours by 2, and so on. --Doolittle 18:52, 6 October 2007 (CEST) 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. --Alpha 10:00, 7/12/2010 (BST) 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. --Osmo 21:35, 31 October 2011 (EET)

Bottom Section