Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Flute - Serverside sound? (https://forums.graalonline.com/forums/showthread.php?t=87358)

FreezeBurnX 08-10-2009 01:11 PM

Flute - Serverside sound?
 
Hello guys!
I'm trying to do a flute script but I'm wondering onto how to perform serverside sounds. Doing it at //#CLIENTSIDE obviously doesn't have the effect I want and doing playSound() at serverside will be weird for the player playing the sound if he is lagged

I looked onto g2k2 and thought it was via gani, but it loads 2 ganis, one for the player holding the flute and another one for the music tones, but none of then play a sound...

Thanks for the help

cbk1994 08-10-2009 01:16 PM

I don't know how exactly GK does it, but the best way is to either put it in the animation (GANI) or show an animation.

PHP Code:

// play a sound
setAni("myflute""mysound3.wav"); 

Then in the animation, put in a sound and put "PARAM1" for the file.

http://img21.imageshack.us/img21/3773/how2.png

You can also make an empty GANI with just a sound in it, and use showani, but I don't recommend that.

FreezeBurnX 08-10-2009 01:24 PM

I see... then it's like I thought, thank you!


All times are GMT +2. The time now is 04:45 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.