Profile image

Car Engine Engage at certain climb angle

4,359 MeetThyDoom  2 months ago

Hi All. I'm working on a build and I wondered if it would be possible to set a secondary engine to become active (responsive to throttle and 0 on deactivate) when the vehicle reaches a certain climb angle, say 35 degrees, and then disengage after it levels out.

What would the input code be?

  • Log in to leave a comment
  • Profile image
    7,334 overlord5453

    @MeetThyDoom are you editing it from the files or overload menu?

    2 months ago
  • Profile image
    7,334 overlord5453

    @MeetThyDoom maybe try this
    PitchAngle >= 35 ? (Throttle) : 0 put this in the input. The problem here is that the input will be locked once you go below 35degree. or try this
    PitchAngle >= 35 in activation group and don't forget about zeroOnDeactivate to true

    2 months ago
  • Profile image
    4,359 MeetThyDoom

    @overlord5453 Thanks! This worked for a little while, but I've either broken the XML file or the game is just saying no, as it just simply won't work no even after inserting a new engine and the input code.

    But many thanks! It was great whilst it worked :)

    2 months ago
  • Profile image
    7,334 overlord5453

    Try this
    PitchAngle >= 35 ? 1 : 0 here, if the pitch angle is greater or equal to 35 you will get output of 1. If it's below 35, then you get output of 0.
    Put this in the activation group section if you only wants it to be activated and not running. You can use throttle or anything else to run the engine. If you want it to run the engine,put it in the input section instead.
    Make sure to set zeroOnDeactivate to true or it won't turn off.

    +2 2 months ago