Difference between revisions of "DCS func getAbsTime"

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

Revision as of 06:43, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getAbsTime Added with: 1.2.0
Member Of: timer
Syntax: time timer.getAbsTime( )
Description: Returns the mission time in seconds. It is relative compared to the mission start time.

The default mission start time in the mission editor is Day 1: 12:00:00. In seconds this value is: 43200


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