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

loop index array remove

Status
Not open for further replies.
Level 29
Joined
Oct 24, 2012
Messages
6,543
im trying to find out how to remove a bunch of location through a loop i know the normal call RemoveLocation( udg_Random_Point[.] ) the . being the number but how do i remove it for a loop from 1 to 38 or so do i put it in a loop then do call RemoveLocation( udg_Random_Point[for integer a] ) or something like tht ?
 
Level 18
Joined
May 11, 2012
Messages
2,103
im trying to find out how to remove a bunch of location through a loop i know the normal call RemoveLocation( udg_Random_Point[.] ) the . being the number but how do i remove it for a loop from 1 to 38 or so do i put it in a loop then do call RemoveLocation( udg_Random_Point[for integer a] ) or something like tht ?

make custom script like this:
  • Custom script: call RemoveLocation(udg_Random_Point[bj_forLoopAIndex])
if you do it for integer A

  • Custom script: call RemoveLocation(udg_Random_Point[bj_forLoopBIndex])
for integer B
 
Status
Not open for further replies.
Top