Unsolved How to get vehicle speed in Lua?

Discussion in 'Mod Support' started by maximblog, Nov 25, 2021.

  1. maximblog

    maximblog
    Expand Collapse

    Joined:
    May 31, 2021
    Messages:
    29
    How to get vehicle speed in Lua?
     
  2. NOCARGO

    NOCARGO
    Expand Collapse

    Joined:
    Apr 1, 2019
    Messages:
    1,460
    electrics.values.wheelspeed
    electrics.values.airspeed

    There's also obj:getVelocity() or vec3(obj:getVelocity())

    Depends on what you are trying to get working
     
    #2 NOCARGO, Nov 25, 2021
    Last edited: Nov 25, 2021
    • Agree Agree x 1
  3. maximblog

    maximblog
    Expand Collapse

    Joined:
    May 31, 2021
    Messages:
    29
    Thanks
     
  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