time: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|TIME]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|TIME]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|TIME]]
[[Category:Scripting Commands ArmA|TIME]]


| ofp |= Game name


<h2 style="color:#000066">'''time'''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Time elapsed since mission started (in seconds). |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''time''' |= Syntax


None
| [[Number]] |= Return value
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Number]]
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Time elapsed since mission started (in seconds).
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


'''Comments:'''
Not to be confused with '''_time'''. Within a script, the reserved local variable '''_time''' returns the time elapsed since the script started running. Note that the value of time is not saved when the mission is saved and so will be reset to zero when a mission is restarted from a saved position. The value of _time is saved correctly and will resume from where it was.
 
[[Category:Scripting Commands|TIME]]
Not to be confused with [[_time]].
[[Category:Scripting Commands OFP 1.96|TIME]]
 
[[Category:Scripting Commands OFP 1.46|TIME]]
Within a script, the reserved local variable [[_time]] returns the time elapsed since the script started running.
[[Category:Scripting Commands ArmA|TIME]]
 
Note that the value of '''time''' is not saved when the mission is saved and so will be reset to zero when a mission is restarted from a saved position.
 
The value of '''_time''' ''is saved'' correctly and will resume from where it was.

Revision as of 23:54, 1 August 2006

Hover & click on the images for description

Description

Description:
Time elapsed since mission started (in seconds).
Groups:
Uncategorised

Syntax

Syntax:
time
Return Value:
Number

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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

Old Notes (temporary):

Not to be confused with _time. Within a script, the reserved local variable _time returns the time elapsed since the script started running. Note that the value of time is not saved when the mission is saved and so will be reset to zero when a mission is restarted from a saved position. The value of _time is saved correctly and will resume from where it was.