missionStart: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (version update 1.8 → 1.80) |
Killzone Kid (talk | contribs) (tidying up, moving notes that are no more relevant to talk for keeping) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns date and time when mission started in format [year, month, day, hour, minute, second] | | Returns date and time when mission started in format <tt>[year, month, day, hour, minute, second]</tt> in MP, which differs from [[date]] format only by seconds. In SP returns <tt>[0,0,0,0,0,0]</tt>. | ||
<br><br> | <br><br> | ||
{{Informative | 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}} |Description= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 32: | Line 30: | ||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> |
Revision as of 10:38, 13 September 2018
Description
- Description:
- Returns date and time when mission started in format [year, month, day, hour, minute, second] in MP, which differs from date format only by seconds. In SP returns [0,0,0,0,0,0].
- Groups:
- Uncategorised
Syntax
- Syntax:
- missionStart
- Return Value:
- Array - real local date and time (similar to date format but with seconds)
Examples
- Example 1:
setDate (missionStart select [0,5]);
- Example 2:
- Set real date:
//postInit = 1; if (isServer) then { waitUntil {time > 0}; setDate (missionStart select [0,5]); };
Additional Information
- See also:
- datetimedaytimeserverTimesetDate
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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.80
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Command Group: Mission Information
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- Scripting Commands Arma 3