Unsolved Wheel down force [lua]

Discussion in 'Mod Support' started by aljowen, Dec 4, 2016.

  1. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I am trying to get the amount of force placed upon each wheel for the dashboard system in my car. However I cannot figure out how to get data out of the drivetrain.wheelInfo system.

    This is the sort of code that I am trying to get working in the Lua to then be passed onto the javascript to be rendered onto the html.
    Code:
        local lFR = drivetrain.wheelInfo[WheelFR].downForce
        local lFL = drivetrain.wheelInfo[wd.wheelID].downForce
        local lRR = drivetrain.wheelInfo[wd.wheelID].downForce
        local lRL = drivetrain.wheelInfo[wd.wheelID].downForce
    Thanks for any help
     
  2. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    Yeah, I have had a look in that. But I couldn't really see where it was getting the data from. Equally (afaik) for vehicles you need to use a lua script to get the data, then pass it to a javascript script to make it act upon a UI in the car (with any processing done in either the js or lua). But the app has no lua, only javascript, so I couldn't tell if it was particularly relearnt.
     
  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