How To Control Rpm Of The Diesel

Discussion in 'General Discussion' started by wenxdx, Sep 12, 2026 at 6:09 AM.

  1. wenxdx

    wenxdx Member

    Joined:
    Sep 1, 2025
    Messages:
    36
    Likes Received:
    1
    Hi everyone, I've recently been looking for a way to control the RPM of a diesel locomotive. I'm making a locomotive whose RPM fluctuates freely in the idle state. I tried using SetControlValue in the script's Update function to control the RPM, but it failed. Does anyone have a good way to control the RPM?
     
  2. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    416
    Likes Received:
    345
    You have to replace the in-game RPM with a virtual rpm that you fully script yourself. "VirtualRPM" is the name for the control value.
     

Share This Page