- Messages
- 240
- Country

Hello!
There were several post about timers in the past and now I actually feel the need to make one, too.
I already coded some HOBBS timer for my gauge, but during my optimizations I stumbled over this problem:
I thought that this should increase my flight time whenever the remainder of (E:Absolute time) / 1 is 0, therefor every second.
But it doesn't react at all. Could it be that the remainder is never 0, because of some strange time step intervals?
Or am I using the wrong code anyway?
Thank you in advance,
Steven
There were several post about timers in the past and now I actually feel the need to make one, too.
I already coded some HOBBS timer for my gauge, but during my optimizations I stumbled over this problem:
Code:
(A:SIM ON GROUND,bool) 0 ==
(E:Absolute time, seconds) 1 % 0 ==
and
if{ (L:flight_time_total,seconds) ++ (>L:flight_time_total,seconds) }
I thought that this should increase my flight time whenever the remainder of (E:Absolute time) / 1 is 0, therefor every second.
But it doesn't react at all. Could it be that the remainder is never 0, because of some strange time step intervals?
Or am I using the wrong code anyway?
Thank you in advance,
Steven






