Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-10-2009, 01:11 PM
FreezeBurnX FreezeBurnX is offline
Registered User
FreezeBurnX's Avatar
Join Date: Jul 2003
Location: Belo Horizonte - Brasil
Posts: 296
FreezeBurnX is on a distinguished road
Send a message via AIM to FreezeBurnX Send a message via Yahoo to FreezeBurnX
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
Reply With Quote
  #2  
Old 08-10-2009, 01:16 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.



You can also make an empty GANI with just a sound in it, and use showani, but I don't recommend that.
__________________
Reply With Quote
  #3  
Old 08-10-2009, 01:24 PM
FreezeBurnX FreezeBurnX is offline
Registered User
FreezeBurnX's Avatar
Join Date: Jul 2003
Location: Belo Horizonte - Brasil
Posts: 296
FreezeBurnX is on a distinguished road
Send a message via AIM to FreezeBurnX Send a message via Yahoo to FreezeBurnX
I see... then it's like I thought, thank you!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:17 AM.


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