Scripting/Server/Classes/Sound_server/FindSound
Returns a Sound object, or null if the file is not in Sounds/.
Syntax
FindSound("file.mp3")Arguments
- any "file.mp3"
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "findsound" )
{
FindSound( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Sound (server)
Categories: Server methods | Sound (server)