Jump to content
Sign in to follow this  
zovirl

list command results not static?

Recommended Posts

Ok, so the list command is supposed to return a list of units that would activate a trigger. However, this list gets updated after it is returned so if I do this:

_WestList = list WestTrigger

then later if some of the units have died they won't be in the _WestList any longer. How do I get a list a list of units that stays around?

Share this post


Link to post
Share on other sites

Well, typical. I have struggled with it for 2 hours and 30 seconds after I posted I found the answer. Here it is if anyone is interested...

this doesn't work, it associates _WestList with list WestTrigger forever:

_WestList = list WestTrigger

this is how I should have done it:

_WestList = + list WestTrigger

That makes a seperate copy of the list for _WestList, so changes in the original list don't show up in _WestList

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×