• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Destroy sound bug

Status
Not open for further replies.
Level 7
Joined
Mar 8, 2009
Messages
360
I have a strange bug with destroy sound, it immediatly stops sound instead of waiting for end of sound. (sound is shamanReady1)

Its possible that i have this bug since i use JNGP but i'm not sure

this is my trigger although it hasn't got much to do with it.
  • bla
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Sound - Play SEF <gen> at 100.00% volume, attached to (Triggering unit)
      • Sound - Destroy (Last played sound)
 
Level 7
Joined
Mar 8, 2009
Messages
360
Destroy in gui = kill in jass
This is converted trigger:
JASS:
function Trig_bla_Actions takes nothing returns nothing
    call PlaySoundOnUnitBJ( gg_snd_SEF, 100, GetTriggerUnit() )
    call KillSoundWhenDoneBJ( GetLastPlayedSound() )
endfunction

//===========================================================================
function InitTrig_bla takes nothing returns nothing
    set gg_trg_bla = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_bla, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddAction( gg_trg_bla, function Trig_bla_Actions )
endfunction


@Slayer It works when i don't destroy sound
 
Status
Not open for further replies.
Top