Implement global sound player

This commit is contained in:
2024-03-08 15:22:57 +01:00
parent 17dd6e8c6a
commit b6172c3442
3 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
-- PLAY_SOUND
function(e, file)
local success = PlaySoundFile(file, "Master")
if not success then
print(string.format("Failed to play sound file at %s", file))
end
end