Page 1 of 1

sounds, sound effects?

Posted: Fri Oct 03, 2008 6:17 pm
by flametard
I looked in one of the universal folders the other day and discovered a bunch of sound files. I was wondering if there was any way i could get my planet to use them.

can i make a script something like:


event- newbuilding
.playsound 24

and it would play a the fanfair sound when they made a new building? cause as of right now the only scriptable sound effect i know of is .thunder, which everyone hears.


can i upload a sound effect to play when a person uses a certain weapon?


can i change the menu sound effects?


if i can use sounds, can i make my own custom sounds for use in the game?!

Posted: Sun Oct 05, 2008 10:26 pm
by flametard
no one knows ANYthing about adding sound effects to a planet?!

Posted: Sun Oct 05, 2008 10:50 pm
by fhko
only thing I know is that you can set a building to play a certain sound effect constantly that nearby players can hear...that's about it


Oh yeah, to make a weapon use a particular sound, you have to set up which number sound will be played. Then the correct file must be applied to that sound number using the world server's sound selector tool. The tool relies on the use of sounds in the server's sounds folder.

Image

Posted: Mon Oct 06, 2008 12:36 am
by zaroba
lol, i hope your still not waiting for an answer.
it only would have taken 5 mins to toss that into a script and see if it worked :P

there is the .playsound # command. so i don't see why it wouldn't work.
i don't remember if the script can use . yet commands though.

Posted: Mon Oct 06, 2008 6:36 am
by flametard
oh... darnit, youre right. it cant!! :*(
i was thinking of *stomp not .thunder
shucks shucks shucks.

thanks for the info guys!!
:D

Posted: Mon Oct 06, 2008 6:38 am
by flametard
oh, i cant mess with scripts right now cause im connecting via wireless and it wont let me into my planet to test the new scripts. hopefully my spaceship will be gettin cable in the next week or so.

Posted: Tue Oct 28, 2008 7:55 pm
by Mit
note theres also
*sound (NUM)
which plays the sound on all clients

Posted: Sun May 29, 2011 12:51 am
by flametard
*customsound %player% (num) plays the sound from the custom sounds file to just the player

*soundeffect (num) plays a sound on all clients, however, i do not know how to set up these sounds, it seems to use 1-28 but the numbers dont corrospond tothe custom sounds file in the server window

.playsound and *sound seem to do nothing.