Can i use blueprint api functions from C++ code

Can i use “SetThrottleInput” or other functions from my c++ code? They are from chaos vehicle plugin. I inherited “AWheeledVehiclePawn” from my c++ code and i can get “UChaosVehicleMovementComponent” from “GetVehicleMovement()” function but there aren’t any functions in there. I can see these functions in Blueprint API from documentation but i can’t find them at C++ API. Is there any way to use them from code?

In short yes.

Don’t forget to add the “ChaosVehicles” module to your project build file and rebuild your project to get intelisense to work in visual studio

PublicDependencyModuleNames.AddRange(new string[] { // other previous entries , "ChaosVehicles" });

1 Like