BIS fnc trackMissionTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |Game name=
|gr1= Missions


|1.00|= Game version
|descr= Tracks mission time by storing time in [[profileNamespace]].
____________________________________________________________________________________________


||DESCRIPTION=
|s1= [save, delete] call [[BIS_fnc_trackMissionTime]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_trackMissionTime]]; --> |SYNTAX=
|p1= save: [[Boolean]] (Optional, default [[true]])


|p1= |PARAMETER1=
|p2= delete: [[Boolean]] (Optional, default [[false]])


| |RETURNVALUE=
|r1= [[Number]] - time result
____________________________________________________________________________________________


|x1= <code></code> |=
|x1= <sqf>[true, true] call BIS_fnc_trackMissionTime; // Delete saved mission time</sqf>
____________________________________________________________________________________________


| |SEEALSO=
|x2= <sqf>[true] call BIS_fnc_trackMissionTime; // Save mission time</sqf>


|seealso= [[time]] [[serverTime]] [[systemTime]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Missions|{{uc:trackMissionTime}}]]
[[Category:Functions|{{uc:trackMissionTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:trackMissionTime}}]]

Latest revision as of 17:00, 13 July 2022

Hover & click on the images for description

Description

Description:
Tracks mission time by storing time in profileNamespace.
Execution:
call
Groups:
Missions

Syntax

Syntax:
[save, delete] call BIS_fnc_trackMissionTime
Parameters:
save: Boolean (Optional, default true)
delete: Boolean (Optional, default false)
Return Value:
Number - time result

Examples

Example 1:
[true, true] call BIS_fnc_trackMissionTime; // Delete saved mission time
Example 2:
[true] call BIS_fnc_trackMissionTime; // Save mission time

Additional Information

See also:
time serverTime systemTime

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