Random Sound...

Author Topic: Random Sound...  (Read 2867 times)


I'm not terribly great with alternate aliases, but I'm to assume that you're Qwertyuiopas, amirite?
The same Qwertyuiopas who made a demo bricks hack?

If you didn't notice, Qwertyuiopas has stated that he no longer suports that hack.

If you didn't notice, Osama Bin Laden has stated that he no longer supports terrorism.

In Soviet Russia, bricks hack you.


The solution to the original question is extremely simple, provided that you understand this concept:

If you want to play sounds on the client's end that the client might not have (i.e., sounds included with an Add-On), you need datablocks.

Just create datablocks for the few sounds you might want to play and then use the onFire() method to send a play2D() or play3D() to the client whose player is firing the weapon.  Obviously you don't want to create a ridiculous amount of datablocks for this purpose, but creating a few is fine.

I can't believe this has gone on for 3 pages.