• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Save Point in Hashtable

Status
Not open for further replies.
Level 7
Joined
Jul 20, 2009
Messages
295
Hello,

Do I need to set TempLocation via variable then save this point to Hashtable or I am able to do it directly without the TempLocation variable, then when done 'clear all child' will take care of leak?
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Clear child just clears the data from the Hashtable (sets everything = null) but withot destroying stuff.

Before clearing the Hash you have to destroy the location by loading it's handle.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
  • Set TempPoint = Position of Something
  • ----- Saving point in the Hashtable -----
  • Custom script: call SavePointHandle(udg_YourHashtable, parentKey, childKey, udg_TempPoint)
  • ----- DestroYing the Point -----
  • Custom script: call RemoveLocation(LoadPointHandle(udg_YourHashtable, parentKey, childKey)
 
Last edited by a moderator:
Status
Not open for further replies.
Top