I am making a drive-able monorail and it won’t work. It works fine until I get into it and drive it. Then it just stops and doesn’t let me drive it.
Monorail pic: Processing: Screen Shot 2022-10-09 at 3.27.57 PM.png…
Script 1:
The problem is that the throttle property of the VehicleSeat resets to 0 upon first entering it, thus setting the value in ServerStorage to 0 (15 * 0 = 0). In your first script, you could set its value without referencing the old one, like this:
I believe you’re overlooking the fact that the value will no longer be 15 at that point, but 0. It can never recover from that since anything times 0 will still equal 0.
Well, this isn’t about the throttle property of the seat, but about the value object he’s using. Look at the following line in the first script he provided:
I take it that you’re using a value object in order to easily modify the monorail’s maximum velocity. A good way of utilizing the functionality of said object would be to initially read its value and save it as a variable somewhere in your code.