Jump to content
Sign in to follow this  
garnett21a

Help!!! about the string"thislist"

Recommended Posts

Hi, guys, I want to ask how to make the situation like below happen:

I was doing a mission where serveral different groups or single units are doing some actions. And now I want the units in a certain territory move on to something else, so I added a trigger with <anybody present/ thislist switchmove "null">

Anyway, this brings nothing but a error message. Can somebody tell me the right command to make all the units in the trigger stop playing the move instead of typing numbers of {_x playmove "null"} foreach units ...

One thing I do not understand is that when I use the <thislist join XX>, it works. why it cannot be used for the <switchmove>huh.gif?huh.gif?huh.gif???

Share this post


Link to post
Share on other sites
Quote[/b] ]One thing I do not understand is that when I use the <thislist join XX>, it works. why it cannot  be used for the <switchmove>huh.gif??

ThisList is an array of all the units within the trigger, the Join command uses arrays. The switchmove command doesn't, so you have to read through each element of the array. Try something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x playmove "null"} foreach ThisList

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  

×