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.32 Bug Reporting thread
    Solutions and more information may already be available.

Parkingbrake as non-toggle

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Petrolhead, Jun 25, 2014.

  1. Petrolhead

    Petrolhead
    Expand Collapse

    Joined:
    Aug 20, 2013
    Messages:
    3
    Hello,

    after the pre-race update I can't seem to get handbrake work as non-toggle.

    %mm.bind(keyboard, space, parkingbrake_toggle); works ok, as toggle.

    %mm.bind(keyboard, space, parkingbrake); stops working, no handbrake at all with this line.

    Am I missing something? :D
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    I tried to a script but it's not working.
    Code:
    %pbrake = 0;
    function parkingbrake_notoggle(%val)
    {
        if(%pbrake == 0)
        {
            echo("parkingbrake enable");
            parkingbrake_toggle();
        }
        if(%pbrake == 1)
        {
                if(%val==0)
                {
                    echo("parkingbrake deseable");
                    parkingbrake_toggle();
                }
        }
    }
    %mm.bind(keyboard, space, parkingbrake_notoggle);
     
  3. Tha Smit

    Tha Smit
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    48
    I would like a fix too.
     
  4. pulley999

    pulley999
    Expand Collapse

    Joined:
    Jan 21, 2013
    Messages:
    825
    Find the command "parkingbrake_toggle" in the inputmap of your choice

    change it to "parkingbrake"

    MIND=BLOWN

    EDIT: Diiidn't read OP, I'm an idiot.
     
  5. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Yet another weird thing to break :p. Just hope tdev sees this :)
     
  6. Possibly_Pos

    Possibly_Pos
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    226
    Hm... weird i've not had a problem with it so could not help all hope you find a fix

    Only thing i could think off is you made a typo or somethin

    I mean mine is no different then what you posted
    ie:
    Code:
    %mm.bind(%device, btn_r, parkingbrake_toggle);
    %mm.bind(%device, btn_a, parkingbrake);
    I don't beleave this is any different then yours sept what key they are using

    (edit)
    I'm sure you can guess why i use both
     
  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