Somehow I got confused over this, I hope there is someone who can clear this up.
I have several preplaced regions that I need into an array variable. So, for this region named Town <gen> I used set Region(1) = Town <gen> at initialization.
(I'm not sure if that leaks, as far as I know leaks are produced by using an area/point and so on)
At some point I wanted to pick every unit in that region without a leak, so I've tried:
Set Temp_Region = Region(1)
pick all units in Temp_Region and do this and that
Custom script: call RemoveRect(udg_Temp_Region)
I did that in an effort to keep the Region (1) variable but as it seems, the custom script destroys both the Temp_Region and Region (1)
Is there any way I can deal with this?
I have several preplaced regions that I need into an array variable. So, for this region named Town <gen> I used set Region(1) = Town <gen> at initialization.
(I'm not sure if that leaks, as far as I know leaks are produced by using an area/point and so on)
At some point I wanted to pick every unit in that region without a leak, so I've tried:
Set Temp_Region = Region(1)
pick all units in Temp_Region and do this and that
Custom script: call RemoveRect(udg_Temp_Region)
I did that in an effort to keep the Region (1) variable but as it seems, the custom script destroys both the Temp_Region and Region (1)
Is there any way I can deal with this?