SlashCo Wiki

SlashCo.AudioSystem.GetSoundFileFromSource

 string SlashCo.AudioSystem.GetSoundFileFromSource( string name )

Description

Returns the soundFile of a registered sound script or if it has multiple one of them randomly.
This function is specifically meant to be used for sounds registered using sound.Add

Arguments

1string name

The sound name to lookup

Returns

1string soundFile

The found sound file or nil on failure