Author Topic: playing audio emitters?  (Read 1095 times)

I've want to use a audio file, and want to use it as a audio emitter. I have it setup under as a function for a server command. Do I have my thinking right?

Code: [Select]
new AudioEmitter(TCcoreSFX_Default)
{
position = "0 0 0";
filename = ""@ $TCcoreSFX::Path @ "sfx_"@ %filename @ ".wav";
description = "TC_SFX";
type = "0";
volume = "1";
OutsideAmbient = "1";
RenderDistance = "-1";
maxDistance = "-1";
isLooping = "1";
mount = %client.object;
}
alxSourcei(%client.object[], "AudioEmitter(TCcoreSFX_Default)");

Jesus loving a god damn dolphin Christ, have you never heard of the word 'an?'

The alx functions are client-side iirc, so that'd be the wrong function to use.

Jesus loving a god damn dolphin Christ, have you never heard of the word 'an?'

The alx functions are client-side iirc, so that'd be the wrong function to use.

Oh ok. So, how would I able to play it as a server-side without a brick, mounting the sound on the Client Object

%client.play2D(TCcoreSFX_Default);