Update Vehicle EngineSetup @ Runtime

Simple question. Is it possible to update vehicle parameters (ex. EngineSetup) at runtime in c++?
UpdateEngineSetup in UWheeledVehicleMovementComponent4W is protected method :frowning:

Hi impc,

To access to UpdateEngineSetup or other functionality you can try to create class derived from UWheeledVehicleMovementComponent4W, then create some function and set up options you want (Mass, MaxEngineRPM, etc) and call SetupVehicle(). To find example how to create your own VehicleMovementComponent check VehicleGame example (UVehicleMovementComponentBoosted4w.h/cpp).

void UVehicleMovementComponentBoosted4w::SetUpMyOptions()
	COMOffset = FVector(0.0f, 0.0f, 0.0f);
	MaxEngineRPM = 10000;
	Wheels[0]->LongStiffValue = 1000;