[JASS] Flamestrike Effect Issues

Status
Not open for further replies.
Level 3
Joined
Dec 20, 2007
Messages
44
Hi, I'm having issues with using the flamestrike effect, namely when I destroy the Flamestrike1.mdl effect after creating it to avoid leaks the effect never occurs, i.e. the animation never shows up. Here's part of where I'm using it

JASS:
loop
        exitwhen i >= 6.0
        set tx = x + 256.0 * Cos(i * bj_PI/3)
        set ty = y + 256.0 * Sin(i * bj_PI/3)
        call DestroyEffect(AddSpecialEffect("Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl", tx, ty))
        call DestroyEffect( AddSpecialEffect("Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl", tx, ty))
        set i = i + 1.0
    endloop
    set i = 0.0
 
Yeah, but I want to have a dozen of them or so firing simultaneously, and so I wouldn't be able to wait and still retain a pointer to that effect unless I used arrays or something...
 
Well you need to make it play Birth animation
so you need to make a dummy unit for that
or use vexorian's (find it in some system with his dummy model credit)
its an invisible model with attachment points
 
Many models wont display anything if you destroy them immediately.

Actualy from a lot of threads that have been asking questions like this it seems like Flame Strike is the ONLY effect that bugs with destroying it right after it was made.

You can test it with any effect you want and you'll see it plays its animation even when destroyed right after it was created.

Usually the way over this was just waiting 0.01 (which is like 0.27 or whatever it is).
 
Status
Not open for further replies.
Back
Top