DCS func getTime

From DCS World Wiki - Hoggitworld.com
Revision as of 00:12, 12 April 2018 by Grimes (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: getTime Added with: 1.2.0
Member Of: timer
Syntax: time timer.getTime( )
Description: Returns the model time in seconds. This counts time once the simulator loads. So if a mission is paused, the time this function returns still moves forward.


Return Value: time
Return Example: none
Examples: if timer.getTime() > 20 then
 doWhatever()
end
Related Functions: timerfunctions: getTime, getAbsTime,getTime0, scheduleFunction, removeFunction, setFunctionTime
Notes: