HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Playing a sound in JASS not working, help!

06-19-2006, 04:27 PM#1
darkwulfv
Here's my JASS, but just the parts related to what I'm having problems with:

Collapse JASS:
local sound s = PurgeTarget1.wav
call KillSoundWhenDoneBJ(s)
set s = null

When I save, it says it's wrong but doesn't disable it like it would when it is wrong. A glitch maybe?
06-19-2006, 04:58 PM#2
aquilla
it looks like you just guessed your way on this one, PurgeTarget1.wav would probably be treated as an undeclared variable (if the name even is legal). I suggest you do it in GUI first and convert it to JASS afterwards, as this isn't as simple as you thought it was

Edit: think you'd wind up with something similar to this:
Collapse JASS:
    local sound s = CreateSound("the sound path", false, false, true, 12700, 12700, "")
    call StartSound(s)
    call KillSoundWhenDone(s)
    set s = null
06-19-2006, 06:48 PM#3
darkwulfv
yea i was guessing entirely... But I'm a noob w/ Jass so go figure. Best way to learn is to tinker. Thx tho : )