Comment on page
📻
SoundService
Service for playing sounds.
Example usage:
-- Play a honk sound whenever an entity takes damage
Events.EntityDamage(function(event)
local attackedPosition = event.entity:getPosition()
SoundService.playSound(SoundType.VOICE_HONK, attackedPosition)
end)
Plays a sound globally. You can optionally specify where the sound will come from.
Plays a sound for a specific player. You can optionally specify where the sound will come from.
Last modified 3mo ago