Page MenuHomeFeedback Tracker

brakesDisabled returns the wrong value when using setTowParent
New, NormalPublic

Description

According to the description of setTowParent disables the break. So i would imagine that brakesDisabled would return true.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Sling Loading
Steps To Reproduce

ropeCreate [towingvehicle , [0,-5,-1], towedvehicle , [0,3,-1], 10, ["RopeEnd", [0,0,-1]], ["RopeEnd", [0,0,-1]]];
towedvehicle setTowParent towingvehicle;
hint format ["brakes disabled: %1", brakesDisabled towedvehicle];

Expected result "brakes disabled: true" actual result "brakes disabled: false"

Event Timeline

Darkbelg created this task.Mar 5 2022, 2:06 PM
Darkbelg edited Steps To Reproduce. (Show Details)
dedmen added a subscriber: dedmen.Mar 7 2022, 12:16 PM

setTowParent only disables brakes while driving, not while standing still.
When you stand still or the lead vehicle is braking, the towed vehicle also applies brakes.

brakesDisabled and setTowParent are different things.

So if i'm driving i should get brakesDisabled back as true on the towedvehicle?

If they are different things why do they interact with each other then? See my other issue. Or is that just a bug?