Difference between revisions of "DCS func getTime0"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 45: Line 45:
 
}}
 
}}
 
[[Category:Singleton Functions|getTime0]]
 
[[Category:Singleton Functions|getTime0]]
 +
[[Category:Game Patch 1.2.0|getTime0]]

Latest revision as of 06:44, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getTime0 Added with: 1.2.0
Member Of: timer
Syntax: time timer.getTime0( )
Description: Returns the mission start time in seconds. Can be used with timer.getAbsTime() to see how much time has passed in the mission.


Return Value: time
Return Example: none
Examples: The following example would execute code 20 seconds after the mission has started.
if timer.getAbsTime() - timer.getTime0() > 20 then
 doWhatever()
end
Related Functions: timerfunctions: getTime, getAbsTime,getTime0, scheduleFunction, removeFunction, setFunctionTime
Notes: