garnett21a 0 Posted November 21, 2005 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>????? Share this post Link to post Share on other sites
UNN 0 Posted November 21, 2005 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>?? 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
garnett21a 0 Posted November 22, 2005 Thanks, that realy helps. Share this post Link to post Share on other sites