Returns the game world time in seconds relative to time the mission started. Will always count up from when the mission started. If the value is above 86400 then it is the next day after the mission started. This function is useful in attaining the time of day.
Assuming a mission started at noon the value returned would be 43200. (126060). Midnight would be 0. Calling this function at 12:00:10 timer.getAbsTime will return 43210.xxx.
Absolute mission time-of-day in seconds.
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.
Elapsed mission model time in seconds.
Returns the mission start time in seconds. Can be used with timer.getAbsTime() to see how much time has passed in the mission.
Mission start time in seconds since midnight.
Removes a scheduled function as defined by the functionId from executing. Essentially will "destroy" the function.
Identifier returned by scheduleFunction.
Nothing.
Schedules a function to run at a time in the future. This is a very powerful function. The function that is called is expected to return nil or a number which will indicate the next time the function will be rescheduled.
Use the second argument in that function to retrieve the current time and add the desired amount of delay (expressed in seconds).
Callback receiving the supplied argument and scheduled model time.
Value passed unchanged to the callback.
First execution time in mission model seconds.
Numeric schedule identifier used to reschedule or cancel the callback.
Re-Schedules an already scheduled function to run at a different time in the future.
Identifier returned by scheduleFunction.
New execution time in mission model seconds.
The model time at which the callback is now scheduled to run.
See
Authoritative executable examples
No Self