mirror of
https://github.com/ApfelTeeSaft/UnrealEvent.git
synced 2026-08-27 03:43:40 +00:00
16 lines
567 B
C++
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);
|
|
}
|
|
} |