missionStart: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3>" to "") |
||
Line 26: | Line 26: | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
Revision as of 13:48, 18 January 2021
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:
- Mission Information
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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.80
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Mission Information
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands