RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
reset virtual channels when session is reset
Author Message
Reply with quote
Post reset virtual channels when session is reset 
How do I reset values when the session is reset?

I am trying to make a fuel remaining / fuel consumed channel and I want to reset it's value when we add fuel to the car.

View user's profile Send private message
Reply with quote
Post  
Hi, when you say "the session is reset" do you mean, when the button on app is pressed to reset the session?

One thing you can do is check the SessionTime channel. If the session is reset, the SessionTime is reset to 0. You can check for this in your Lua script and take appropriate action.

Hope this helps, let us know what you figure out!


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum