Files
UnrealEvent/Project/Source/FortniteGame/Private/FortAnimNotifyState_EmoteSound.cpp
2026-04-22 15:51:07 +02:00

16 lines
567 B
C++

#include "FortAnimNotifyState_EmoteSound.h"
#include "Components/SkeletalMeshComponent.h"
#include "Kismet/GameplayStatics.h"
UFortAnimNotifyState_EmoteSound::UFortAnimNotifyState_EmoteSound() {
this->EmoteSound1P = NULL;
this->EmoteSound3P = NULL;
}
void UFortAnimNotifyState_EmoteSound::NotifyBegin(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, float TotalDuration)
{
if (EmoteSound3P != nullptr)
{
UGameplayStatics::PlaySoundAtLocation(MeshComp->GetWorld(), EmoteSound3P, MeshComp->GetComponentLocation(), 0.4f);
}
}