• 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.

[Trigger] Clearing leaks from array units

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,033
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