S
Scienthsine
Guest
Ok, so I'm making a map and I want to have the 'airship' only load/unload in certain places.
To accomplish this, on exit of these areas I remove it's Load, Unload, and Cargo abilities. (Had to remove Cargo, or the player can click the unit to unload it.)
On entering the areas, I add these abilities.
Now, it seems that when I remove Cargo, and add it again... the contained units are no longer there...
I can solve this by checking what units are in it before removing cargo, and storing them in variables... but I'm wondering if this whole thing might cause memory leaks... do these units still exist somewhere?
Any insight is helpfull.
-Upon further inspection:
To check what units are in the airship, I'm going to have to keep track of them as they load/unload. Right?
Another problem however, how do I re-create the units IN the airship?
To accomplish this, on exit of these areas I remove it's Load, Unload, and Cargo abilities. (Had to remove Cargo, or the player can click the unit to unload it.)
On entering the areas, I add these abilities.
Now, it seems that when I remove Cargo, and add it again... the contained units are no longer there...
I can solve this by checking what units are in it before removing cargo, and storing them in variables... but I'm wondering if this whole thing might cause memory leaks... do these units still exist somewhere?
Any insight is helpfull.
-Upon further inspection:
To check what units are in the airship, I'm going to have to keep track of them as they load/unload. Right?
Another problem however, how do I re-create the units IN the airship?


