As the title says, I'd like to know if it's possible to set a jbeam variable via lua. I'm trying to make the brakes of a vehicle (the semi, specifically) "fail" by setting the overall brake strenght to 0. If not, how would I go about such an idea?
I've heard it is possible to get the value of the variable, maybe it's possible to set it too but no idea how.
Yeah, I've read a thread saying that it is possible which is where I got the idea to set a variable from
No, that's not possible. These variables are handled as one of the first steps when parsing the vehicle, they have no meaning after initialization. You would have to instead adjust whatever the actual variables affect. In the brake example that would be the brakeTorque property of the relevant wheels.