[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 08-12-2012, 10:24 PM   #1 (permalink)
Registered User Sephalo
(Recently Name-changed)
 
Sephalo's Avatar
 
Join Date: Oct 2007
Posts: 1,689
Sephalo is just really nice (272)Sephalo is just really nice (272)Sephalo is just really nice (272)Sephalo is just really nice (272)Sephalo is just really nice (272)
I can save, but the sounds don't start (SoundTools)

I'm using SoundTools since some time now, and recently I wanted to add sounds to my cinematic system.

This is what should work in my system. I can save it as intended, but it doesn't work because ingame it doesn't play the sounds at all.
What am I doing wrong?

///This is where I create all sounds so I can use them in other systems/stuff
Jass:
library SoundDocumentation initalizer init requires SoundTools
globals
    integer array BossFightSounds
endglobals

private function init takes nothing returns nothing
    set BossFightSounds[0] = NewSound("Sound\\Ambient\\DoodadEffects\\FlashBack1Second.wav", 2178, false, false)
endfunction
endlibrary

///This is in the cinematic system
Jass:
function AddSound takes player p, integer s returns nothing
    call RunSoundForPlayer(s, p)
endfunction

///How I want it to work:
///call AddSound(p, BossFightSounds[0])
///
///That should start the sound for the given player.. but it doesn't..:(
Sephalo is offline  
Old 08-13-2012, 05:35 PM   #2 (permalink)
Forum Moderator Magtheridon96
JESUS MAN
 
Magtheridon96's Avatar
Resource Moderator
 
Join Date: Dec 2008
Posts: 5,700
Magtheridon96 has a brilliant future (1812)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. 
http://www.wc3c.net/showthread.php?t=107433

Try that.

If it still doesn't work, then you're probably playing the sounds for some player other than yourself ._. (Or you typed the path wrong)
__________________
Magtheridon96 is offline  
Closed Thread

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 01:37 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle