DCS func getAbsTime

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: getAbsTime Added with: 1.2.0
Member Of: timer
Syntax: time timer.getAbsTime( )
Description: Returns the game world time in seconds relative to time the mission started. Will always count up from when the mission started. If the value is above 86400 then it is the next day after the mission started. This function is useful in attaining the time of day.

Assuming a mission started at noon the value returned would be 43200. (12*60*60). Midnight would be 0. Calling this function at 12:00:10 timer.getAbsTime will return 43210.xxx.


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