63{
65 {
66 LOG_WARNING(LogCK,
"플레이어 컨트롤러가 없어 로딩 후 입력 복원을 건너뜁니다.");
67 return;
68 }
69
70 ACharacter* Character = Cast<ACharacter>(Context.
PlayerController->GetPawn());
71
72 if (Character == nullptr)
73 {
75 return;
76 }
77
78 IAbilitySystemInterface* ASI = Cast<IAbilitySystemInterface>(Character);
79
80 if (ASI == nullptr)
81 {
83 return;
84 }
85
86 UAbilitySystemComponent* ASC = ASI->GetAbilitySystemComponent();
87
88 if (ASC == nullptr)
89 {
91 return;
92 }
93
94 ASC->RemoveLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKMOVEMENT);
95 ASC->RemoveLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKINPUT);
96 if (UCharacterMovementComponent* MovementComponent = Character->GetCharacterMovement())
97 {
98 MovementComponent->SetMovementMode(MOVE_Walking);
99 }
100}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41
#define NAMEOF(Type)
Definition CK_UE.h:31
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:40
TObjectPtr< APlayerController > PlayerController
Definition LevelStreamingContext.h:39