1
0
KF2-Dev-Scripts/KFGame/Classes/KFAnimNotify_AkEvent_IfActiveMGTarget.uc
2020-12-13 18:01:13 +03:00

30 lines
1.0 KiB
Ucode

//=============================================================================
// KFInterface_MinigameTarget
//=============================================================================
// Anim notify that has some specialty code related to whether or not a sound
// attached to a minigame target can be played.
//=============================================================================
// Killing Floor 2
// Copyright (C) 2017 Tripwire Interactive LLC
// - Dan Weiss
//=============================================================================
class KFAnimNotify_AkEvent_IfActiveMGTarget extends AnimNotify_AkEvent
native;
cpptext
{
#if __TW_WWISE_
virtual UBOOL CanPlay(AActor* in_pOwner, USkeletalMeshComponent* in_pSkelComp, UAkEvent* in_pEvent);
#endif
}
simulated event bool CanPlayAkEvent(Actor inOwner)
{
if (KFInterface_MinigameActor(inOwner) != none)
{
return KFInterface_MinigameActor(inOwner).CanPlayAkEvent(inOwner, BoneName);
}
return false;
}