Enable More Input Axis When Mode Change

I have a character that can walk around and also fly. When he is in the air or in flying mode, I want him to be able to roll, rotate, and change direction pitch so he can fly up/down like the craft in the Flying Template. Is this do-able? Can I have two sets of input axis and only enable the other when flying and disable it when the character is on the ground walking/running, etc?

Yep you can do that very easily. Just create a boolean variable or use the default “isFlying” and from your other input axis just put a branch that checks that bool

I tried unsuccessfully - do you have any examples to share?

This is what I’ve got so far - it solved the issue of moving up and down when flying. However, I still can’t figure out how to add a tilt to turns when flying. I’m also trying to figure out how to add the portion squared off in red into a branch. Hoping maybe you or someone here can clue me on how to do it.

&stc=1

For setting that when “isFlying” is true just set the rotator value as a variable and on your set actor rotation plug the variable in there. On the branch set the different values on true and false.

For the YAW you will just want to set that up with some custom controls to increase its yaw for however long you hold down the button. Look at the turning/rotation controls in 1 of the default character blueprints.

I tried that and got some bizarre and undesired results. For some reason, when I use a variable to branch between the character loses all influences from InputAxis MoveRight and InputAxis MoveForward is flipped the other way around.

Well if you are branching but not ending up at your input for those 2 axis then yes they will need to stop. You still want to have them occur, just modify the value for them