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

[Solved] Destroy Hashtable Unit Group/Creation of Hashtable Unit Group

Status
Not open for further replies.
Level 13
Joined
Sep 29, 2008
Messages
671
If I for example I create a unit group like this to save in hashtable

  • Custom script: call SaveGroupHandleBJ( CreateGroup(), 0, GetHandleIdBJ(GetTriggerUnit()), udg_Hashtable )
Will destroying it be like this?

  • Custom script: call DestroyGroup(LoadGroupHandleBJ(0, GetHandleIdBJ(GetTriggerUnit()), udg_Hashtable))
I tried it so far, the spell works but I don't know how to make sure that this doesn't leak. Does this leak?

Basically what I did is convert GUI Hashtable to Custom Scripts because GUI Hashtable don't have CreateGroup () option.
 
Status
Not open for further replies.
Top