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

Removing Array Variable Leaks

Status
Not open for further replies.
Level 14
Joined
Nov 18, 2007
Messages
1,084
Sorry if I misunderstood your question, but if you're looking to remove all the leaks at once in an array variable:
  • For each (Integer A) from 0 to 11, do (Actions)
    • Loop - Actions
      • Custom script: call RemoveLocation(udg_MyPointArray[bj_forLoopAIndex])
If you're seeking to only remove one location then you should do something like
  • Custom script: call RemoveLocation(udg_MyPointArray[MyNumber])
 
Status
Not open for further replies.
Top