본문 바로가기

ue42

싱글, 멀티플레이 리스폰 시스템 구현 (C++ 소스코드) 기본적인 게임구조로 캐릭터의 HP가 존재하고 HP가 0에 다다를경우 캐릭터의 State를 초기화해 시작지점으로 돌리는 리스폰 시스템이 필요합니다. UE4 내에 이미 이를 위한 RestartPlayer() 함수가 준비되어 있습니다. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AGameModeBase/RestartPlayer/index.html AGameModeBase::RestartPlayer Tries to spawn the player's pawn, at the location returned by FindPlayerStart docs.unrealengine.com RestartPlayer 함수의 경우 새로운 폰을 스폰하고.. 2021. 5. 24.
Error: CDO Constructor Failed to Find Blueprint 해결 방법 최근 간단한 토이프로젝트로 UE4 데디케이트 서버를 이용한 멀티플레이 TPS 게임을 만들고 있습니다. 개발중 겪었던 에러와 해결책을 포스팅합니다. 발생한 에러는 CDO Constructor Failed to Find Blueprint '레퍼런스 경로' 입니다. Blueprint 파일을 호출하는데에 있어서 오류가 발생한 경우 입니다. 해당 컨스트럭터가 실패한 파일은 MainCharacter 부분입니다. 언리얼 에디터 상에서 실행할때는 문제없이 게임이 플레이 되지만 빌드한 언리언엔진 데디케이티드 서버를 실행할 경우 다음과 같은 메시지와 함께 실행이 불가능합니다. AMainCharacter::AMainCharacter() { // Set this character to call Tick() every fram.. 2021. 4. 19.