1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.33 Bug Reporting thread
    Solutions and more information may already be available.

How to create an adjustable spoiler

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Speed_Freak13, Jun 11, 2024.

  1. Speed_Freak13

    Speed_Freak13
    Expand Collapse

    Joined:
    May 28, 2024
    Messages:
    82
    How would one create an adjustable spoiler so that you can adjust how much downforce(dragCoef) your spoiler creates? I have the Variables thing configured, but I don't know which "unit" and "catagory" I should use to make it work.

    Thank you!
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,158
    Doesn't matter what unit and category, these will only appear on the UI. So put whatever you want there.
     
  3. Speed_Freak13

    Speed_Freak13
    Expand Collapse

    Joined:
    May 28, 2024
    Messages:
    82
    I've tried to get it to work with this syntax


    "variables": [
    ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
    ["$dragCoef", "range", "dragCoef", "Drag", 200, 0, 1000, "Downforce", "Adjusts Wing Downforce"{"stepDis":0.5}],
    ],

    Then where it starts the Triangles I put

    {"dragCoef":"$dragCoef"},

    What am I doing wrong?
     
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,158
    This should be working
     
  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