Jump to content
Sign in to follow this  
CarlGustaffa

Problem with doFollow/commandFollow?

Recommended Posts

Hi

I'm scripting some "random halts" between waypoints. But whenever the AI group leader halts (disableAI "MOVE", stop, doStop, whatever), the units starts following the number #2 guy (me). I've tried issuing doFollow commands to every member in the squad so we are organized into squad leader and three three man teams (not correct/used syntax shown):

3&4 follow 2

6&7 follow 5

9&10 follow 8

2&5&8 follow 1

But every time the leader stops everything falls apart.

Furthermore, I've had nothing but problems using stop and doStop. Even formations break down, and no matter how often I try to set group formation to column, they will follow me in a wedge. DisableAI "MOVE" is not optimal since if we get into combat AI leader will not even rotate, meaning he cannot fire on enemies outside his current viewing arc.

Btw, I don't want to stop individual members, since they should use this halting time to get reorganized and find their way to their formation position.

Any ideas how to solve?

Share this post


Link to post
Share on other sites

mmm....

try to set every 3 men in team _red, _blue, _green by assignteam and then _x dofollow formationleader _x, .....etc

dont' know really but every _team must copy _group formation and then you can move _team_leader by setdistination instead domove

but this is don't tested))

just idea))

Share this post


Link to post
Share on other sites
I'm scripting some "random halts" between waypoints. But whenever the AI group leader halts (disableAI "MOVE", stop, doStop, whatever), the units starts following the number #2 guy (me).

That's weird, never experienced any problems with that.

Here they just stay in formation of #1

I also did use the disableai "target" command though, but that doesn't matter I guess.

Share this post


Link to post
Share on other sites

what happens if you issue a doStop/commandStop for every unit in the group in reversed order (like in the leader comes last)?

Share this post


Link to post
Share on other sites

What you need to do is remove yourself from the formation. You can do this by giving the player a stop or move order. With you no longer in formation, the rest of the group will follow whoever is next in command.

Share this post


Link to post
Share on other sites

@nikita320106: Must say I have never used setDestination. Not quite sure what it is supposed to why, why it is there etc. The suggestion doesn't sound right, but I'll keep it in mind.

@ruebe: What happens is they won't be able to catch up and reorganize :) So not what I was looking for. As I said, "I don't want to stop individual members".

@Big Dawg KS: I've never considered that, but I'll try it out and see what happens.

Edit: Does seem to work, but I can't have members 3 and 4 follow me around now obviously. Will have to get back in the thinking box a little.

Thanks for the description update on the doStop command Rübe. I wish I had knew that before :)

Edited by CarlGustaffa

Share this post


Link to post
Share on other sites

Man, naah... This is driving me crazy :(

After I doStop myself, others follow squad leader, just as intended. But...

When I leave my squad with my two team members to create a "new squad", I'm still holding the "Stop" status, and they don't follow me at all. Checking "stopped player" claims false (probably only works with the stop command, not doStop). Player doFollow player cycles though some stuff in my avatar picture, but ends up on Stop again. OtherUnits (in my new squad) doFollow player, puts them in stop mode. Wtf?

I'm sure there exist some ways around this too, but I think I'll just start drinking instead. Seems more healthy in the long run :p

Share this post


Link to post
Share on other sites
Man, naah... This is driving me crazy :(

After I doStop myself, others follow squad leader, just as intended. But...

When I leave my squad with my two team members to create a "new squad", I'm still holding the "Stop" status, and they don't follow me at all. Checking "stopped player" claims false (probably only works with the stop command, not doStop). Player doFollow player cycles though some stuff in my avatar picture, but ends up on Stop again. OtherUnits (in my new squad) doFollow player, puts them in stop mode. Wtf?

I'm sure there exist some ways around this too, but I think I'll just start drinking instead. Seems more healthy in the long run :p

Why not just hit 0-0-1 ingame?

Share this post


Link to post
Share on other sites

They refuse, probably because I'm in "stop" mode. They react to "go there", but not to "return to formation". I haven't figured out yet a way to "unstop" myself. player doFollow player as mentioned, only goes through some states before ending up with stopped again.

I also tried "player doFollow xxx"; sleep 1; join own squad, but to no avail.

Share this post


Link to post
Share on other sites

Sorry, I meant just 0-1. It's not return to formation, it's "Done". It cancels any orders currently on you (like move, stop, etc..), allowing you to lead the formation again.

Also, I just tested doFollow and it works for me (I used "player doFollow (leader group player)"). It cancels the stop status on the player when I use doStop on him.

Share this post


Link to post
Share on other sites

when you and the 2 AI form your own group, do you use the "[player,AI1,AI2] join examplegroup" command? If so, try to seperate them into two commands like:

[player] join examplegroup;[AI1,AI2] join player;

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  

×