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

How to clean a loop of TempPoints[x]

Status
Not open for further replies.
Level 1
Joined
Jun 13, 2008
Messages
132
Hi there again, I'm having this issue, I can create a loop to store many points for a skill but afterwards I have to write every custom script, "call RemoveLocation (udg_TempPoint[1]) and so on, isn't there a custom script to clear all at once? like "call RemoveLocation (udg_TempPoint[loopA_loop])"
 
Level 6
Joined
May 20, 2014
Messages
228
  • For each (Integer A) from 1 to 2, do (Actions)
    • Loop - Actions
      • Custom script: call RemoveLocation (udg_TempPoint[Integer A])
Didn't test, but should work, I guess.

edit: use this instead, thanks Iceman/Edge
  • Custom script: call RemoveLocation (udg_TempPoint[bj_forLoopAIndex])
 
Last edited:
Status
Not open for further replies.
Top