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

[Trigger] Clearing leaks from array units

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,029
I know that if I have set a unit as say "Temp_Unit" in a GUI variable I can clear it with

  • Custom script: set (udg_Temp_Unit) = null
But what if the variable "Temp_Unit" is an array and let's say I want to to clear a specific "Temp_Unit" from that array?

I tried things like

  • Custom script: set (udg_Temp_Unit(1)) = null
  • Custom script: set (udg_Temp_Unit[1]) = null
 
Status
Not open for further replies.
Top