Author Topic: Making An Object Play A Sound  (Read 1096 times)

How do I make an object play a sound that other people can hear within a radius (I won't care what the radius is).


serverplay3D?
What's the difference between ServerPlay3D and ServerPlay2D?

You assign a position to a 3D sound, so depending on where you are, you can hear it through different speakers at different sound levels, whereas 2D simply plays the sound as if you were right next to it no matter where you are in the map.

What's the difference between ServerPlay3D and ServerPlay2D?
One sound gets quieter at you move away from it. The other doesn't.

serverPlay3D(soundDatablock,position)
serverPlay2D(soundDatablock,position)


Nope. Checked it to make sure afterwards and 2d has no position, like what the above post said.
« Last Edit: November 01, 2012, 11:04:13 AM by HellsHero »

Didn't work : /

serverPlayer3D(clickPlantSound, %brick.getPosition());

Didn't work : /

serverPlayer3D(clickPlantSound, %brick.getPosition());

It's serverPlay3D. If you're using a brick anyway, just use brickObject.playSound( clickPlantSound );

If you're using a brick anyway, just use brickObject.playSound( clickPlantSound );
Didn't work. I even tried /getID and than did ID.playSound(clickPlantSound);

Didn't work. I even tried /getID and than did ID.playSound(clickPlantSound);

Have you made sure that Blockland can play sound in the first place, that your code is being run properly and that clickPlantSound exists (and your client is aware of it)?

Have you made sure that Blockland can play sound in the first place, that your code is being run properly and that clickPlantSound exists (and your client is aware of it)?
Lets see: All volumes in options set to max and it plays other sounds. Code is being run properly. The sound exists. And how do I check if my client is aware of it?

Lets see: All volumes in options set to max and it plays other sounds. Code is being run properly. The sound exists. And how do I check if my client is aware of it?

Basically, did you create the sound datablock after the server started?

Basically, did you create the sound datablock after the server started?
I didn't create it at all, it's a default sound.