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

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