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

Control only if pressed

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by vojta1991, Oct 24, 2019.

  1. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Does anyone know how to make a turn signal, and any other, only when the button is pressed?
    Thanks
     
  2. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,544
  3. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Ok, for example turn signal - i press a button and release it, and turn signal still blinking.
    I need to make certain functions work only after pressing button.
    Sorry for my english :D
     
  4. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,544
    That's how the turn signal currently functions
     
  5. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    I know, and i need a way to change it :D I need ONLY if i holding a button, because i made a steering wheel with turn levers, and if i turn off turn signal, they still works.
     
  6. GotNoSable!

    GotNoSable!
    Expand Collapse
    Banned

    Joined:
    Jan 10, 2019
    Messages:
    804
    You could potentially find a way to make the indicators toggle-able, but I have absolutely 0 idea on how that can be done.
     
  7. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    That's the problem for me.
     
  8. raomak

    raomak
    Expand Collapse

    Joined:
    Jun 21, 2019
    Messages:
    73
    Are you russian?
     
  9. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    No, i´am from Czech.
     
  10. Alex_Farmer557

    Alex_Farmer557
    Expand Collapse

    Joined:
    Dec 28, 2016
    Messages:
    3,544
  11. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    This is not possible, those bindings are not of the 'hold' kind, but they are 'toggles'.
    Means you press once to turn on, and another to turn off.
    Or in the case of lightbars, cycle among multiple states.
     
    • Agree Agree x 1
  12. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Ok, thanks for answering. And will it be possible in the future? Some kind of check collum in option?
     
  13. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    I would not put my hopes on it.
    It's also kind of a weird request, turn signals are not hold buttons on.
    Why would you want that?
     
  14. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Because i made a steering wheel with turn levers, like in real car. Now i must press turn signal, and then again to turn off.
     

    Attached Files:

    • IMG_20191024_144023.jpg
  15. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,997
    This is not possible currently. If you really want to try, you can at your own risk try to modify lua/ge/extensions/core/input/actions/vehicle.json , look for

    "toggle_left_signal" :{"cat":"vehicle", "order": 24, "ctx": "vlua", "onDown" :"electrics.toggle_left_signal()", "title": "Left Signal", "desc": "Toggles left turn signal" },
    "toggle_right_signal" :{"cat":"vehicle", "order": 25, "ctx": "vlua", "onDown" :"electrics.toggle_right_signal()", "title": "Right Signal", "desc": "Toggles right turn signal" },

    And change "onDown" to "onChange". That will hopefully do the trick. Even then, this is currently not going to be officially supported, so again, cross fingers and try at your own risk :)
     
  16. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Thanks a lot, i try it tomorow. I'am curently ať work.
     
  17. vojta1991

    vojta1991
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    12
    Cross fingers works, it´s working. Thanks again for Your support :)
     
  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