Thursday, April 19, 2012

how to RemoveLocation Points Array?

I know when you have stored a point in a variable, you can remove it using custom script like
Code:
call RemoveLocation( udg_PointVariable )

I now have stored 2 points in a point array, how do I remove them? what should my custom script look like?

Thanks!|||Isn't it just
Code:
call RemoveLocation( udg_PointVariable[1] )

?|||Quote:






View Post

Isn't it just
Code:
call RemoveLocation( udg_PointVariable[1] )

?




Yeah, I figured that out. Luckily I only have 2 points, but what if I have 10 or even 100 points? Is there a easier way?|||it should look something like this


Code:
local integer index = 0
loop
exitwhen index > howevermanypointsyouhave
call removelocation(udg_blahblah[index])
set index = index + 1
endloop
|||Quote:






View Post

it should look something like this


Code:
local integer index = 0
loop
exitwhen index > howevermanypointsyouhave
call removelocation(udg_blahblah[index])
set index = index + 1
endloop






cool....

No comments:

Post a Comment