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

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