Hey guys!
First of all: sorry when i put the wrong forum.
I’m pretty new to the Unreal Engine 4 and moved from Unity3D (some difficulties here and there, but overall i make good progress ^^).
My question is: how to move the character while jumping?
I made my character completely in C++. No blueprints were used. My code for jumping looks like this:
void AFPSCharacter::OnStartJump()
{
bPressedJump = true;
}
void AFPSCharacter::OnStopJump()
{
bPressedJump = false;
}
Does anyone know the answer? I’m thankful for every single answer!
Sincerely
//EDIT: Found the problem. I searched around the ‘CharacterMovementComponent.h’ and found ‘AirControl’. I need to set this to 1, so i have aircontrol. 0 (default) means no aircontrol.
Simply write:
CharacterMovement->AirControl = 1;
in the constructor of your character.