Jump to content
Sign in to follow this  
Jeff2121

Getting ai soldiers to sit

Recommended Posts

Well, I have a couple of questions; I'm hoping someone can answer:

1) How do I get AI soldiers to sit on the ground indefinitely, but react if the enemy comes near?

2) Do I need an external script for this to work?

Cheers, mate! wink_o.gif

Share this post


Link to post
Share on other sites

Yes I think you do. I'm going to post one up tomorrow when I've had some sleep smile_o.gif

Share this post


Link to post
Share on other sites

I do, in fact, believe that my facts are straight, even though I haven't played OFP in a while now.

But

(1.)Give the soldier an order to sit down, eg:

soldier1 action ["SitDown"]

(2.)Create a trigger, oh, 100 by 100 and set it to East detected by west. Synchronize it to the first waypoint that gives the ["SitDown"] order.

(3.)Create another waypoint that puts his combat mode to red, or Combat, Open Fire, engage at will.

That way, when the East is detected by West, the guy will be alert, and not sitting.

If you have any further problems, contact me I'll actually test something, or clarify further, but this will work, guaranteed, if you do it right. smile_o.gif

Share this post


Link to post
Share on other sites

Hi,

No external script is needed. Just copy and paste the following code in the init line of the squad leader. Once enemy are in sight, they will get up.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x switchmove "EffectStandSitDownStill";_x setbehaviour "safe";dostop _x} forEach units group this

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  

×