Hello,
I have a custom APlayerController class APC_Base and a custom ACharacter class AC_Base. I’m currently wanting to bind the actions for moving the character in the playercontroller class instead of the character class which has the Move function. I’m a bit confused on what is the best way to achieve this in C++. Here is my code.
PlayerCharacter->InputComponent->BindAction(InputActions->MoveInputAction, ETriggerEvent::Triggered, PlayerCharacter, &AC_Base::Move);
I know the easier way is to just bind it in the character class or to create a function in the player controller class that calls the Move function in my character but I want to know if there is way I can just pass in the Character class’s Move function as parameter for the BindAction