• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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