• 🏆 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!

Destroy No need stuff?

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

Jeah that's my question. Is it clever to destroy triggers, rect and everything that's not needed anymore, if you already pass it? Maybe for a better performance or destroy this the map or get bugs?

If yes, can you say how I destroy no need triggers and rects?
(I still use GUI)
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
the rects are possible but the triggers can fuck it up with the H2l I think reborn told me but it's like this or somewhat like this

  • CustomScript - call RemoveRect(udg_YourRect)
  • CustomScript - call DestroyTrigger(GetTriggeringTrigger())
EDIT

JASS:
call DestroyTrigger(GetTriggeringTrigger())
Can slightly improve map performance, BUT it can also fuck up the handle indexing and other stuff. It rarely happens, but it can happen. Many would advise you not to use it while others say it's completely safe. I have never experienced any problems, but others have.

Some handle id's (the values you get from H2I() or GetHandleId()) might get fucked up.
And many spells and systems use these, but the chance of it happening is slim at best.
 
Status
Not open for further replies.
Top