1. GPU Fatal Error? Intel HD Graphics 620/630 Crashes? Help us solve them!
    Dismiss Notice

Engine and motor driving separate axles simultaneously?

Discussion in 'Content Creation' started by The Stig Is A Spy, Jun 26, 2019.

  1. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    67
    To be honest, I have no idea if this is even possible, but what I'm looking for is an engine driving the rear axle and pneumatic electric motors driving the front axle. Of course, many things end up conflicting (in my particular case, I can control engine throttle but can't shift, and the motors' tach is displaying despite it not responding to throttle inputs). I have next to no Lua experience, but I'm willing to jump in if needed.

    (shitty diagram is shitty)
    beamng-help-1.png
     
  2. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    67
  3. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,283
    This is perfectly possible, since it's a non standard powertrain layout, you'll have to write a bunch of custom code to make it work properly though.
     
  4. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    67
    Thanks! How can I get started? (For now, I'm looking to make both the motors and engine respond to throttle, but I don't see anything in the Lua Reference wiki page for throttle inputs or sensors.)
     
  5. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    67
    I'm using the SBR4's spoiler.lua as a base and I believe I've got the structure down, but I still have no idea how to transfer a throttle input value to motor throttle, syntax-wise (throttle control from Lua file, in the same vein as spoiler control via brake input). Any help from anybody is welcome.
     
  6. The Stig Is A Spy

    The Stig Is A Spy
    Expand Collapse

    Joined:
    Apr 11, 2018
    Messages:
    67
    I know I'm sounding rather desperate at this point, but I have no leads. All I need is for someone who knows a thing or two about Lua to put me on track.
     

    Attached Files:

  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