{"name":"missionStart","operator":null,"title":"missionStart","type":"command","url":"https://community.bistudio.com/wiki/missionStart","revid":329154,"updated":"2022-07-25T12:25:22Z","groups":["Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.80"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.80"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns date and time when mission started. Because this command returns the time of the actual start of the mission, it might not be available in *pre-init* or *init*, but is guaranteed to be available in *post-init* when `time > 0`.","syntaxes":[{"syntax":"missionStart","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":null,"types":["Array","date"],"description":null,"text":"Array format `[year, month, day, hour, minute, second]` in multiplayer, which differs from date format only by seconds. In SP returns `[0,0,0,0,0,0]`"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nsetDate (missionStart select [0,5]);\n```","code":["setDate (missionStart select [0,5]);"]},{"text":"Set real date:\n\n```sqf\n//postInit = 1;\nif (isServer) then\n{\n    waitUntil { time > 0 };\n    setDate (missionStart select [0, 5]);\n};\n```","code":["//postInit = 1;\nif (isServer) then\n{\n\twaitUntil { time > 0 };\n\tsetDate (missionStart select [0, 5]);\n};"]}],"multiplayer":"Command only has the desired return value in multiplayer.","problems":null,"aliases":[],"see_also":["date","time","dayTime","serverTime","setDate","systemTime","systemTimeUTC"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Mission Information","Introduced with Operation Flashpoint version 1.80","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}