sound - Uberi/MineTest-API GitHub Wiki

sound

Description

A table describing the attributes to apply to a sound.

Syntax

-- Play locationless on all clients
{
	gain = 1.0, -- default
}
-- Play locationless to a player
{
	to_player = name,
	gain = 1.0, -- default
}
-- Play in a location
{
	pos = {x=1,y=2,z=3},
	gain = 1.0, -- default
	max_hear_distance = 32, -- default
}
-- Play connected to an object, looped
{
	object = <an ObjectRef>,
	gain = 1.0, -- default
	max_hear_distance = 32, -- default
	loop = true, -- only sounds connected to objects can be looped
}
⚠️ **GitHub.com Fallback** ⚠️