Wagon Shoes Script

Discussion in 'General Discussion' started by niker#2325, Mar 25, 2025.

  1. niker#2325

    niker#2325 New Member

    Joined:
    Mar 25, 2025
    Messages:
    3
    Likes Received:
    0
    Hi there! I'am developing a wagon for Train Sim Classic and I'am interested in animate de brake shoes, where should I start? I used Call("*:GetControlValue", "TrainBrakeCylinderPressurePSI", 0), but not works. Thanks!
     
  2. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    302
    Likes Received:
    316
    Do you have the TrainBrakeCylinderPressurePSI control value in the wagon blueprint? You also need a loco to have the same control value, and that it is set to apply to consist. But then you can have some devs that uses TrainBrakeCylinderPressureBAR instead, so now you won't get any value on TrainBrakeCylinderPressurePSI. Most devs uses TrainBrakeControl for applying brakes, so it might be more safe to use this CV. But then again, in the loco blueprint it has to be set to "apply to consist"

    It's not so easy to make this work unless you make the loco too, since all the calculations for bakes are done on the loco only. And since devs script their brakes differently you can't really tell when the brakes are applied.
     

Share This Page