• 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.

[JASS] Special Effects go leak!!

Status
Not open for further replies.
Level 7
Joined
Mar 22, 2010
Messages
228
i added a speacial effect to a neutral unit..

that sfx was a weapon i edited..

but when the unit was killed and sfx did not disappear even i put the action
JASS:
call DestroyEffect(my_specialeffect)
..

it floats..
 

Attachments

  • Unnamed.jpg
    Unnamed.jpg
    33.7 KB · Views: 128
Level 7
Joined
Mar 22, 2010
Messages
228
nope. i guess that doesnt matter because the model file i attached with is not edited(only the skins are edited).
 

Attachments

  • Unnamed.jpg
    Unnamed.jpg
    114.2 KB · Views: 81
Level 7
Joined
Mar 22, 2010
Messages
228
so im gonna change the villiger model to missile then test if its destroyed?
ok i'll test it...


EDIT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
there..no attachment was shown at all...

EDIT2!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
heres my trigger..
JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_unitsfxs_Actions takes nothing returns nothing
    local unit u = gg_unit_h003_0011
    local unit u2 = gg_unit_h003_0012
    local integer i=0
    local effect sfx1
    local effect sfx2
    set sfx1 = AddSpecialEffectTarget("war3mapImported\\axe1.mdx", u, "left hand")
    set sfx2 = AddSpecialEffectTarget("war3mapImported\\axe1.mdx", u2, "left hand")
    loop
        if u == null then
            call DestroyEffect(sfx1)
            set i = i + 1
        endif
        if u2 == null then
            call DestroyEffect(sfx2)
            set i = i + 1
        endif
        exitwhen i == 2
    endloop
endfunction

//===========================================================================
function InitTrig_unitsfxs takes nothing returns nothing
    set gg_trg_unitsfxs = CreateTrigger(  )
    call TriggerAddAction( gg_trg_unitsfxs, function Trig_unitsfxs_Actions )
endfunction
 
Level 7
Joined
Mar 22, 2010
Messages
228
you dont need to shout..^^
okok!

EDIT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

the attachment didnt disapear....
check out my trigger..is their something wrong in it?
 
Level 7
Joined
Mar 22, 2010
Messages
228
but when i use that..
and when the unit dies(the start of the interval) the special effects are removed..

for example when a hero has died, i want the special effect to be shown while dissipating..
 
Status
Not open for further replies.
Top