Need Help With Bp

Discussion in 'PC Editor Discussion' started by lewisthomas22, Oct 10, 2025 at 11:12 AM.

Tags:
  1. lewisthomas22

    lewisthomas22 Member

    Joined:
    Feb 22, 2020
    Messages:
    27
    Likes Received:
    62
    Trying to code something cool, but one requirement is that I need to apply the brakes given a condition. There is this function 'Get full service braking' which I assume does what it says. But it doesnt work. Can anyone help me with this, or show me how to trigger the brakes through a BP
    upload_2025-10-10_11-12-2.png
     

    Attached Files:

  2. MJCKP

    MJCKP Well-Known Member

    Joined:
    Jul 14, 2023
    Messages:
    440
    Likes Received:
    641
    One way would be to use a Set Current Output Value or Set Current Input Value node, to set PowerHandle(IrregularLever) to a braking position (I think -1 is max braking)

    You could also use a Set Simulation Node Parameter as Float by Ref node to change something in the simugraph, but I don't know what specifically you would set to apply the brakes
     
  3. lewisthomas22

    lewisthomas22 Member

    Joined:
    Feb 22, 2020
    Messages:
    27
    Likes Received:
    62

    Thanks! I tried the Set Current Input Value method earlier, and it works but it physically moves the handle, which I do not want. I only want the brake application. I am trying the Set Simulation Node Parameter as Float by Ref node method now, do you know what I would use as the parameter?
     
  4. MJCKP

    MJCKP Well-Known Member

    Joined:
    Jul 14, 2023
    Messages:
    440
    Likes Received:
    641
    If you use Set Current Output Value I think that will not move the handle (although it would still require the cab to be active and moving it will reset it).

    To find the various simulation nodes you could either use the API (documentation here) or the simulation debugger in the editor (sit in the driver's seat and then stuff should appear), though there is quite a lot of stuff (example below) and I'm not sure which one would be best. Also, some of the values are read only and can't be changed

    Screenshot 2025-10-10 183547.png
     

Share This Page