Scripting/Server/Classes/Sound_server/FindSound

Returns a Sound object, or null if the file is not in Sounds/.

Syntax

FindSound("file.mp3")

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "findsound" )
	{
		FindSound( 0 );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Sound (server)

Categories: Server methods | Sound (server)