Difference between revisions of "DCS func getTime"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
|par4= | |par4= | ||
− | |desc= 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. | + | |desc= Returns the model time in seconds to 3 decimal places. This counts time once the simulator loads. So if a mission is paused, the time this function returns still moves forward. |
|rtnType= time | |rtnType= time | ||
− | |rtnExample= | + | |rtnExample= 65.385 |
|reqType1= | |reqType1= | ||
Line 38: | Line 38: | ||
|examples= | |examples= | ||
− | + | . | |
if timer.getTime() > 20 then | if timer.getTime() > 20 then | ||
doWhatever() | doWhatever() |