Unreal Engine/UE5 C++ Multiplayer Shooter
웅크린 상태에서 점프하기
diesuki4
2023. 4. 11. 09:03
Unreal Engine 5 C++ Multiplayer Shooter
언리얼 엔진은 기본적으로 웅크린 상태에서 점프를 허용하지 않는다.
How do I allow Jump while I am Crouching?
I agree with this solution, it worked for me like this, no need to add delays:
forums.unrealengine.com
Character 클래스의 CanJump() 함수 선언부를 보면 오버라이딩이 불가능하지만, CanJumpInternal_Implementation() 함수는 오버라이드가 가능한 것을 볼 수 있다.
내 캐릭터 클래스에서 CanJumpInternal_Implementation() 함수를 오버라이드한다.
아래와 같이, 바닥에서 웅크리기 중인 상태도 점프가 가능하도록 수정한다.
이제 웅크리기 중일 때도 점프할 수 있다.