Jump to content
TheSkyStarKnight

Creating an Array of units not in a trigger zone.

Recommended Posts

So, I'm officially stuck. I've been looking everywhere, but I can't seem to find out how to create an array based on units that are NOT in a triggerzone. I discovered that it is fairly simple to collect an (_x array) of units inside of a trigger, however once I use this command:

 

_List = list trigger;

 

It gives me an empty array of units since nobody is in the trigger, even though the trigger is set to "ANY", "NOT PRESENT".

 

Any ideas?

Share this post


Link to post
Share on other sites
3 minutes ago, TheSkyStarKnight said:

It gives me an empty array of units since nobody is in the trigger


As it should - list will only return units in the trigger that meet the trigger conditions. In the case of "not present", you will get the same results as with "present".

  • Like 1

Share this post


Link to post
Share on other sites

That said, maybe something like

_list = allUnits - (list trigger);

 

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, Harzach said:

That said, maybe something like


_list = allUnits - (list trigger);

 

Thankyou! I never even thought of using these simple methods with Arrays. It works perfectly.

  • Like 1

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

×