DCS func getAbsTime
From DCS World Wiki - Hoggitworld.com
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: |