Author Topic: Admin controlled music bricks.  (Read 2805 times)

This adds an "Admin Music Brick" to the interactive subcategory of the special bricks.
Only admins can place these bricks.
And it adds the /music command.
Admins can use this command to set the music of all admin music bricks simultaneously without wrenching them.
It will also show a message saying "<name> changed the music to <music>"
The /disco and /adminMusic commands do the same as /music

Download:
http://syerjchep.org/Brick_AdminMusic.zip


Add support for 10x music bricks please

will it corrupt my build when i save :cookieMonster:



will it corrupt my build when i save :cookieMonster:
you sound like you want that to happen...
OnTopic:
nice mod, using!

it's a reference to Long Range Music bricks which had an issue that would permanently corrupt user's saves

it's a reference to Long Range Music bricks which had an issue that would permanently corrupt user's saves

To be specific, it was a problem with short and long range music bricks because the code was one version outdated, trying to call a missing function when the music was set to NONE.
The problem has been resolved for a while but the scare about this bug is still out there.

There is one little problem with this mod that can be fixed easily.

If you wrench another music brick and change the music settings, and type /music, it shows the same settings as the last wrenched brick, but will be sent to the admin music brick.

Call this after creating the music brick and before pushing the gui on the client to fix it: %brick.sendWrenchSounddata(%client);

Otherwise, great mod.