• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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