Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Play() (https://forums.graalonline.com/forums/showthread.php?t=87576)

Mattehy 08-23-2009 09:58 PM

Play()
 
how do i use this function with a .wav i upload and how do i add a .wav file to the folder config and etc.

Switch 08-23-2009 10:56 PM

The file should be in levels/sounds/ folder or similar. Then in folder config just do file sounds/*.wav (no "levels/" in front). Now let's say you named it as "kick.wav":
PHP Code:

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/playsound")
    
play("kick.wav");



Mattehy 08-23-2009 11:09 PM

how would i make it so the sound is serverside?

Switch 08-23-2009 11:20 PM

http://forums.graalonline.com/forums...ad.php?t=87358
And the showani() params go like showAni(id,x,y,dir,aniName)


All times are GMT +2. The time now is 05:45 PM.

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