time: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|TIME]]
[[Category:Scripting Commands|TIME]]
[[Category:Scripting Commands OFP 1.97|TIME]]
[[Category:Scripting Commands OFP 1.96|TIME]]
[[Category:Scripting Commands OFP 1.46|TIME]]
[[Category:Scripting Commands OFP 1.46|TIME]]
[[Category:Scripting Commands ArmA|TIME]]
[[Category:Scripting Commands ArmA|TIME]]

Revision as of 20:04, 1 June 2006


time


Operand types:

None

Type of returned value:

Number

Description:

Time elapsed since mission started (in seconds).


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.