So I'm sitting here trying to get the sound to work to play through alxPlay. I've tried renaming the function, varaibles, everything. It used to work, but now it won't do anything. This is what I got: function SFXPlay(%audiodescription, %zipname, %filename)
{
if(isFile(""@ $TCcoreSFX::Path @ "sfx_"@ %filename @ ".wav"))
{
if(alxIsPlaying($client::SFXIsPlaying))
alxStop($client::SFXIsPlaying);
$client::SFXIsPlaying = alxCreateSource(%audiodescription, ""@ $TCcoreSFX::Path @ "sfx_"@ %filename @ ".wav", %client.obj);
alxPlay($client::SFXIsPlaying);
}
(Its pretty much the same, but it looks for a alternate using %zipname, and %filename within the addon folder for the sound, making it so other coders can create their own addon using this addon basically. Straight forward and simple.)