The sound you hear when you place a brick down. Just like a click noise. It's not music.
package BrickSound
{
function servercmdPlantBrick(%client)
{
parent::servercmdPlantBrick(%client);
if(isObject(%client.player.tempBrick))
serverPlay3d(%audioFile,%client.player.tempbrick.getTransform());
}
};
activatePackage(BrickSound);
package BrickSoundCreating the package for the new command
function servercmdPlantBrick(%client)Re-Creating the PlantBrick command
parent::servercmdPlantBrick(%client);Calling the parent function, so we don't overwrite it
if(isObject(%client.player.tempBrick))Checking if the player's temp brick exists
serverPlay3d(%audioFile,%client.player.tempbrick.getTransform());Playing the %audioFile (which doesn't exist, you will have to change to an actual datablock) at the position of the player's temp brick
activatePackage(BrickSound);Activating the package containing our new function
edit-
OH, VIA SCRIPT...
how are you calling it?
Could you do:
serverPlay3d(%audioFile,%client.player.tempbrick.getTransform());
?edit again-
I think you are trying to remove the brickplant sound....