Scripting/Server/Classes/Sound_server/Open

Standard transport controls.

Syntax

sound.Open()  Play()  Pause()  Stop()  Close()

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "open" )
	{
		// sound is a sound handle (see Sound (server))
		sound.Open( 0 );
	}
}

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

Section: Sound (server)

Categories: Server methods | Sound (server)