DCS func getAbsTime

From DCS World Wiki - Hoggitworld.com
Revision as of 06:43, 17 March 2022 by Grimes (talk | contribs)

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: