1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  4. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] Is "Heal" model leak ?

Discussion in 'World Editor Help Zone' started by ic3_water, Sep 8, 2016.

  1. ic3_water

    ic3_water

    Joined:
    Sep 7, 2008
    Messages:
    313
    Resources:
    2
    Maps:
    2
    Resources:
    2
    I know must to remove effect after create it.
    But this model got problem, if you want it run animation, you mustnt destroy effect else it wont show any things.

    So should i delay removing this effect or keep it ?
     
  2. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,260
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    If an effect is destroyd it will play it's death animation before being removed.
     
  3. Bitchmoon

    Bitchmoon

    Joined:
    Jul 26, 2016
    Messages:
    88
    Resources:
    0
    Resources:
    0
    Not always. Some effects won't do that.

    Make a dummy unit with the effect as a model, create the unit and order it to play the desired animation, and add a timer to that dummy unit.
     
  4. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,260
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    You mean effects that don't have a death animation?

    When the dummy unit dies, the effect will also play it's death animation, by the way.
     
  5. Bitchmoon

    Bitchmoon

    Joined:
    Jul 26, 2016
    Messages:
    88
    Resources:
    0
    Resources:
    0
    DestroyEffect(AddSpecialEffect(...)) won't always finish playing the effect's animation, which is what his question was about

    (Or create, destroy for GUI users)
     
  6. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,260
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    I did not know that, could you give an example so I can also look at it?

    As I understood he wants to play an animation (not death animation), but it does not play properly when he destroys it instantly.
     
  7. Bitchmoon

    Bitchmoon

    Joined:
    Jul 26, 2016
    Messages:
    88
    Resources:
    0
    Resources:
    0
    @IcemanBo These won't show at all when immediately destroyed:
    "Abilities\\Spells\\Human\\Heal\\HealTarget.mdl"
    "Abilities\\Spells\\Orc\\Disenchant\\DisenchantSpecialArt.mdl"
    "Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl"
     
  8. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,260
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    Thanks.

    I have only tested the first. It uses the "birth" animation, which is wanted to be achieved I think. There is no death animation.

    Destroying something will display the death animation, if an other animation has to be played, then death needs to be delayed.
     
  9. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,926
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Units leak though. Even when removed there is still some data that leaks.

    Most leak free would be some timer system to delay destroy the effects.