LightBringer 0 Posted March 15, 2003 Hi, i do a mission, where deadmans see some scenery, but i want, the civilians, to stay sitting around the fireplace... Why don't they stay there? I put down two civilians called: man, woman. A trigger, initfield: man action ["sitdown"], woman action ["sitdown"]. They sit down, then stand up... What should i do to force them stay down? Thx. Share this post Link to post Share on other sites
RED 0 Posted March 15, 2003 Use the switchmove command: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname switchmove "effectstandsitdown"<span id='postcolor'> Make sure they are in careless mode. RED Share this post Link to post Share on other sites
LightBringer 0 Posted March 15, 2003 i tryed it now.. not working... the trigger's initfield looks like this: man setBehaviour "careless"; woman setBehaviour "careless"; man switchmove "effectstandsitdown"; woman switchmove "effectstandsitdown" Don't know, why they stand up always... Share this post Link to post Share on other sites
toadlife 3 Posted March 16, 2003 For some reason, units will NOT stay sat down if they dont have a weapon. I've only seen this with soldiers, but I guess it applys to all classes of units. You will have to make a script that keeps them on their butts. In my mission Operation LoJack, during the intro soldiers without their guns are sitting next to a campfire. In order to get them to stay put I executed a script like this: The soldiers are w2,w3,w4, and w5 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop w2 playmove "effectstandsitdown" w3 playmove "effectstandsitdown" w4 playmove "effectstandsitdown" w5 playmove "effectstandsitdown" ~2 goto "loop" <span id='postcolor'> This effectively kept the bastards in check. Share this post Link to post Share on other sites
RED 0 Posted March 16, 2003 Another idea, try using the disableAI command: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">woman disableAI "Move"; woman disableAI "AUTOTARGET"; woman switchmove "effectstandsitdown" <span id='postcolor'> RED Share this post Link to post Share on other sites
toadlife 3 Posted March 16, 2003 Hey, I bet that would work. I'm gonna go see..... {EDIT} No it didn't work. Share this post Link to post Share on other sites
RED 0 Posted March 16, 2003 Oh well worth a shot There must be an easier way of doing it. RED Share this post Link to post Share on other sites