Difference between revisions of "DCS func getTime"

From DCS World Wiki - Hoggitworld.com
Line 46: Line 46:
 
}}
 
}}
 
[[Category:Singleton Functions|getTime]]
 
[[Category:Singleton Functions|getTime]]
 +
[[Category:Game Patch 1.2.0|getTime]]

Revision as of 06:43, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getTime Added with: 1.2.0
Member Of: timer
Syntax: time timer.getTime( )
Description: Returns the model time in seconds to 3 decimal places. This counts time once the simulator loads. So if a mission is paused, the time this function returns still moves forward.


Return Value: time
Return Example: 65.385
Examples: .
if timer.getTime() > 20 then
 doWhatever()
end
Related Functions: timerfunctions: getTime, getAbsTime,getTime0, scheduleFunction, removeFunction, setFunctionTime
Notes: