Jump to content
Sign in to follow this  
smogmorph

Forced stop order

Recommended Posts

Is there any way I can force the leader of the group to issue a stop order for the whole group?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_X stop true" foreach units groupname<span id='postcolor'>

That should work.

RED

Share this post


Link to post
Share on other sites

Already tried that.

It paralyzes the men and makes them completely useless. I want them to be able to return fire( but I don't want them to run around engaging tanks etc..).

Before anyone suggests I should use the "dostop" command, I might aswell tell you I already tried that. With "dostop" they do return fire at the enemy, but I found out that it's very unreliable and doesn't really work the way I want it to work.

So.. anyone else got any suggestions except these two mentioned?

Share this post


Link to post
Share on other sites

You could try:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit disableai "move"<span id='postcolor'>

RED

Share this post


Link to post
Share on other sites

Alright thanks, this works out just fine, maybe not what I had in mind but it'll do.

One last question though.

How do I enable "move" once disabled ?

Share this post


Link to post
Share on other sites
Guest jacobaby

I asked this a while back...no answer came, but to be honest I think the answer is to assign another command.

eg;

soldier1 commandfollow leader group soldier1

hth

TJ

Share this post


Link to post
Share on other sites

Well.. we're getting closer to a solution.

In my mission the original Leader of the group is most likely to be killed before the command "follow leader" is executed. Which means that soldier1(1-11) takes command and he's still in disableai "move" mode.

I can hear the leader calling everybody back in formation, but since he's in disableai "move" mode, not much happens sad.gif .

Share this post


Link to post
Share on other sites

After searching the ofpec forums I found out that enabling "move" is impossible if disabled sad.gif

This completely screws up my mission plan. crazy.gif

I would be forever thankful if someone found a way to solve this..

Share this post


Link to post
Share on other sites

Try changing their behaviour and doStopping them? Maybe "careless"??

Doolittle

Share this post


Link to post
Share on other sites

how about making a waypoint for the group, and sync it with a trigger. unless trigger condition is satisfied, units won't move.

Share this post


Link to post
Share on other sites

It's not that easy.

Even though the leader isn't moving, he's still giving out orders to the rest of the men, then they run away from the formation and gets slaughtered by enemy tanks. At best, maybe 1 or 2 soldiers survives the first encounter with enemy troops. Then there's a whole other town to clear... sad.gif

Share this post


Link to post
Share on other sites

The only thing that seemed to work for me was to "disable Target" for each of the men in the group. What this should do is when the leader tells the men to target something that is order is now ignored, so when the leader tell someone to engage a target the soldier will not since he isn't targeting anything the leader tells him to target.

Ben

Share this post


Link to post
Share on other sites

Oh, I never thought of using that command because I thought it would disable the AIs ability to shoot.

I just tried it and it works out great, now I can get on with my mission.

Thanks a bunch all of you smile.gif .

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  

×