Scripting/Server/Functions/FindSound

Plays .mp3 files from the server's Sounds/ folder on the server computer (Windows only). This is a server-side sound - players do not hear it. To play sound for players, declare the file with <sound> in Script.xml and use the client FindSound/PlayFrontEndTrack.

Syntax

FindSound("file.mp3")
PlayFrontEndTrack("file.mp3")
StopFrontEndTrack()

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: Camera and audio (per player)

Categories: Server functions | Camera and audio (per player)