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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.
Last Activity:
Jul 2, 2010
Oct 30, 2008

Following 1

Followers 1



Judicator, from Germany

In-cred-ib-le was last seen:
Jul 2, 2010
    1. Joe-black-5
      :D hello there little man any brother of Paladon is a brother of mine
    2. Eccho
      Keep in mind that the gg_unit_H000_0000 must be generated by the world editor, otherwise it will register a unit which is "null", meaning, a variable which doesn't point at any unit at all.
    3. Eccho
      function ME takes nothing returns nothing
      //I never said it, but Locations are stupid. Use x/y coordinates whenever you can.
      local real tX = GetOrderPointX()
      local real tY = GetOrderPointY()
      local string s = "Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl"

      //Before, you created the effect twice and never removed the first one.
      call DestroyEffect(AddSpecialEffect(s, GetUnitX(gg_unit_H000_0000), GetUnitY(gg_unit_H000_0000)))
      //SetUnitX/Y is also nice.
      call SetUnitX(gg_unit_H000_0000, tX)
      call SetUnitY(gg_unit_H000_0000, tY)
      call DestroyEffect(AddSpecialEffect(s, tX, tY))

      //And done. We didn't have to clear up anything this time :D

      function InitTrig_MEffects takes nothing returns nothing
      local trigger t = CreateTrigger()
      call TriggerRegisterUnitEvent(t, gg_unit_H000_0000, EVENT_UNIT_ISSUED_POINT_ORDER )
      call TriggerAddAction(t, function ME )
      set t = null
    4. Eccho
      Well, nothing gets "un-leaked" unless you dont destroy them, right?

      Also, is is depending on the effect model you are using, when you are to destroy it.

      You know ThunderClap, and WarStomp for instance. They have no specific animation index, which means, they can be removed instantly after they have been created without aborting its gfx. In cases like these, the easiest you could do is to simply:
      call DestroyEffect(AddSpecialEffectLoc(s, i))

      In other cases, you would have to store the effect in a variable, wait, and then destroy it.
      Also, dont forget, that locations leak if you dont destroy them as well (in fact, practically everything which is not code, integer, real or boolean do leak, and are called handles)

      Keep in mind, always null local handles at the end of the function.
    5. Hanky
    6. MasterHaosis
  • Loading...
  • Loading...
  • About

    WarCraft 3 Account:
    WarCraft 3 Realm:
    Northrend (Europe)
    Favourite Race:
    Favorite Organization/Clan:
    Blood Knights
  • Loading...