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
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
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?
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