DCS func getTime0

From DCS World Wiki - Hoggitworld.com
Revision as of 06:44, 17 March 2022 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: