[Solved] Adding An Odometer Via Lua?

Discussion in 'Programming' started by StinchinStein, Jul 16, 2016.

  1. StinchinStein

    StinchinStein
    Expand Collapse

    Joined:
    Jul 16, 2014
    Messages:
    754
    I've tried everything to add an odometer... I don't know what the exact formula for it is.. Can anyone please help?

    In a really old thread tdev said it was easy, but I can't figure it out.

    Thanks! :)
     
  2. StinchinStein

    StinchinStein
    Expand Collapse

    Joined:
    Jul 16, 2014
    Messages:
    754
    It probably would, but I don't know how I would program that.. :|
    I know a lot of programming, but not enough to do that... It's probably something stupid I can't figure out...

    I can get the miles per second (of the wheels)

    The timer only counts by seconds, not milliseconds (for some stupid reason.. Thanks Lua)

    Edit: Kind of solved my problem.. Guess it'll work! :D

    Thanks.
     
    #1 StinchinStein, Jul 16, 2016
    Last edited: Jul 16, 2016
  3. StinchinStein

    StinchinStein
    Expand Collapse

    Joined:
    Jul 16, 2014
    Messages:
    754
    That's pretty much what I did, but thanks for the clarification! Really appreciate it :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice