eisa01 0 Posted May 2, 2003 I need some civillians (hostages) to get their hand on their head. Im trying to do it with switchmove but it just doesn't work. I need em to use FXStandSurUniv as the animation how do i do it?? Share this post Link to post Share on other sites
Snowflake 0 Posted May 2, 2003 hello, imho fx stuff just works while executed in scripts. just write it in a script (hostage.sqs or whatever) and let the civilians execute it. hope it works. greetz snowflake Share this post Link to post Share on other sites
Guest jacobaby Posted May 2, 2003 Put all the civilians into a group, called say "Hostages" Then in your trigger put this line; </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> "_x switchmove {fxstandsurv}" foreach units hostages <span id='postcolor'> Just check the anim name is correct. TJ Share this post Link to post Share on other sites
eisa01 0 Posted May 2, 2003 thx now i just need em to fall down when they get shot Share this post Link to post Share on other sites
Guest jacobaby Posted May 3, 2003 ? (getdammage civvyguy)>=1:civvyguy switchmove "" Share this post Link to post Share on other sites
eisa01 0 Posted May 3, 2003 didnt get that to work  heres the whole script </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x switchmove {FXStandSurUniv}" foreach units hostages ? (getdammage h1)>=1:h1 switchmove "" ? (getdammage h2)>=1:h2 switchmove "" ? (getdammage h3)>=1:h3 switchmove "" ? (getdammage h4)>=1:h4 switchmove "" ? (getdammage h5)>=1:h5 switchmove "" <span id='postcolor'> sorry for beein such a noob with scripts  Share this post Link to post Share on other sites
Transfunsel 0 Posted May 4, 2003 "_x switchmove ""FXStandSur""" foreach units group mygroup should do the trick, but it seems you have to use it in either a waypoint or a trigger. (watch the double ") Be careful with this command, because these units will remain forever in this position, if you want them to die or sth you will have to do another switchmove, e.g. "FXSTAngel" The best thing to do is to use it in a script as someone already posted. hth Share this post Link to post Share on other sites
col_kurtz1979 0 Posted May 4, 2003 #START not (alive myCiv) : goto "CIVDEAD" ~0.01 goto "START" #CIVDEAD myCiv switchmove "FXStandSurDead" This works for me Share this post Link to post Share on other sites