I don’t know what I am doing wrong, but when I unpossess vehicle in Vehicle template than it will driving straight. It stops really slow, wheels are spinnig even if it hits wall.
Probably misreading some inputs for vehicle movement, because when I release throttle and I have it possessed. It will stop in much shorter distance. Even when I try reset input’s in “Unpossessed” event like that:
For example: You can try unpossess vehicle when you gain some speed and turn. Vehicle still go ahead and turn.
Thanks, idea behind that is not bad. In that project with gas on the floor, it doesn’t work either. But is there a solution, in making a boolean variable that can affect inputs and after that using the solution with delay, before unpossessing, solve that.
One more time, thanks Jacky for aiming me to the right direction to solve that issue.
You need to create custom vehicle component and override function UpdateDrag(), also you need to call another custom function (FullClearInput) before leaving vehicle with no controller.
Fantastic solution! It’s also useful to make the fourth parameter, which is handbrake, to set it to 1.0f so vehicle stops quickly). It’s almost 2020 and issue still perists…