Advertisement
Aussiemon

PlaySound.lua

Jan 11th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local sound_event_name = "enemy_horde_stinger" -- Change this to desired sound event name
  2. local SOURCE_ID = 0
  3.  
  4. safe_pcall(function()
  5. EchoConsole("Attempting to play sound event: " .. sound_event_name)
  6.  
  7. local world = Managers.world:world("level_world")
  8. local wwise_world = Managers.world:wwise_world(world)
  9. wwise_world:trigger_event(sound_event_name, SOURCE_ID)
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement