Posts: 84
Threads: 24
Joined: Jul 2009
Reputation:
0
Hello,
I want to know how to detect when a vehicle is not moving for more than 10 seconds.
Thank you for your help
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Just check if their velocity (X, Y and Z) is 0 for >= 10 seconds. No need for algorithms and formulas. Check it on a timer or OnPlayerUpdate (a timer would be better).
Posts: 2,364
Threads: 135
Joined: Dec 2009
Reputation:
0
that will cause problems !
it doesn't reset (1)
It will continue from the stopped time (2) (in this case the last variable num)
Don't think will work a second time (3)
And where do you get playerid in that callback as there is no such variable ?