Thruster controlled by a held key?

Discussion in 'Content Creation' started by unyxium, May 5, 2022.

  1. unyxium

    unyxium
    Expand Collapse

    Joined:
    Mar 30, 2019
    Messages:
    95
    It's for my barge mod (https://www.beamng.com/resources/flat-top-barge.22401/)

    I want to add thrusters to move the barge sideways but I want the thrusters to only work when their respective keys are held. I've chosen F and H since T and G are used for the throttle for the current (azimuth) thrusters.

    There was a method of directly specifying the key in the control section of a thruster but it seems this is deprecated so I want to avoid it. I have a custom lua controller already. I've read the documentation of vehicle specific bindings and onChange, onDown, and onUp are the only options for getting the state of a key press it seems and I don't understand how I can use any for this functionality.
     
  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