Jump to content

Sign in to follow this  
LightBringer

Why don't they stay sit?

Recommended Posts

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... crazy.gif

What should i do to force them stay down?

Thx.

Share this post


Link to post
Share on other sites

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

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... sad.gif

Share this post


Link to post
Share on other sites

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

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

Hey, I bet that would work. I'm gonna go see.....

{EDIT} No it didn't work. tounge.gif

Share this post


Link to post
Share on other sites

Oh well worth a shot smile.gif There must be an easier way of doing it.

RED

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  

×