Page 1 of 1

stopwatch

PostPosted: Wed Aug 16, 2017 6:47 am
by sunnyshi2005
How can I make a stopwatch (say thing 1) that displays Sim.time all the time but stops when something hits another thing (say thing 2)?

Re: stopwatch

PostPosted: Wed Aug 30, 2017 7:51 am
by Luezma
Don't use sim.time, use 1/sim.frequency instead
Code: Select all
_time = 0;
something ? {_time = _time + 1 / sim.frequency}:{}