SoundSystem = SoundSystem or {} SoundSystem.ESound = { Scoll = 1, Click = 2, Btn = 3, Kill = 4, Kill2 = 5, Kill3 = 6, Incentive = 7, ActiveMechanism = 8, MechanismKill = 9, HookFire = 101, HookImpulse = 102, Impulse = 103, Dissipate = 104, OkLetsGo = 105, Buy = 106, Error = 107, } SoundSystem.SoundList = { [SoundSystem.ESound.Scoll] = '/Game/WwiseEvent/UI/Play_UI_Item_Change.Play_UI_Item_Change', [SoundSystem.ESound.Click] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Click_2_1.AK_Click_2_1'), [SoundSystem.ESound.Btn] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Button_1.AK_Button_1'), [SoundSystem.ESound.Kill] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/Audio_Kill.Audio_Kill'), [SoundSystem.ESound.Kill2] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Kill2_1.AK_Kill2_1'), [SoundSystem.ESound.Kill3] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Kill3_1.AK_Kill3_1'), [SoundSystem.ESound.Incentive] = '/Game/WwiseEvent/UI/Play_UI_Champion.Play_UI_Champion', [SoundSystem.ESound.ActiveMechanism] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_ActiveMechanism_1.AK_ActiveMechanism_1'), [SoundSystem.ESound.MechanismKill] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_MechanismKill_1.AK_MechanismKill_1'), [SoundSystem.ESound.HookFire] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/Ak_HookFire_1.Ak_HookFire_1'), [SoundSystem.ESound.HookImpulse] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/Ak_HookImpulse_1.Ak_HookImpulse_1'), [SoundSystem.ESound.Impulse] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/Ak_Impulse_1.Ak_Impulse_1'), [SoundSystem.ESound.Dissipate] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Dissipate_1.AK_Dissipate_1'), [SoundSystem.ESound.OkLetsGo] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_OkLetsGo_1.AK_OkLetsGo_1'), [SoundSystem.ESound.Buy] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Buy_1.AK_Buy_1'), [SoundSystem.ESound.Error] = UGCGameSystem.GetUGCResourcesFullPath('Asset/WwiseEvent/AK_Error_1.AK_Error_1'), } function SoundSystem.PlaySound(SoundType, TargetLocation, TargetRotation) if SoundSystem.SoundList[SoundType] ~= nil then local AKSound = UGCSystemLibrary.LoadAsset(SoundSystem.SoundList[SoundType], true) if TargetLocation then if TargetRotation == nil then TargetRotation = VectorHelper.RotZero() end UGCSoundManagerSystem.PlaySoundAtLocation(AKSound, TargetLocation, TargetRotation) UGCLogSystem.Log("[SoundSystem_PlaySound]") else UGCSoundManagerSystem.PlaySound2D(AKSound) end end end