• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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