• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Is there such a thing as Remove Event

Status
Not open for further replies.
Level 11
Joined
Aug 24, 2008
Messages
106
I have always seen add event in actions, but I was wondering, is there such a thing as remove event? or to clear trigger events? Its just out curiosity. If there is though, could you also show me where that is, or the custom script for it? This could be usefull. Too bad you couldnt make a hashtable for the events to a trigger and add and remove them for it :p.
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
Basically Destroying triggers can result in a major handle allocation/deallocation bug and thus cause a fatal game error (crash). The exact cause is not certain but a lot of map crashes have been attributed to this.

If the trigger is destroyed, are the event handles destroyed, too? There are a lot of loopholes in Blizzard's programing, so this seems to me like events will not deallocate.

Even more slick, does anyone know the best way to check whether handles are being recycled?
 
Status
Not open for further replies.
Top