π»SoundService
Service for playing sounds.
-- 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)Functions
Last updated