OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tain on 25 Apr 2005, 01:19:44

Title: Getting a tank to follow a different group?
Post by: Tain on 25 Apr 2005, 01:19:44
Sheesh, this has been giving me a problem, and it seems so simple.

What i am trying to do is get an ungrouped tank to follow a group of soldiers (or the leader of that group) keeping a constant 10 meters or so behind them.
I have tried the doMove thing, and tank will move about 1 meter and then stop.

Anyone know of any working methods for getting an ungrouped tank to trail behind a group of infantry at a set distance?
Title: Re:Getting a tank to follow a different group?
Post by: Dubieman on 25 Apr 2005, 02:37:02
Not sure on how well it works, but try the command "dofollow" and the tank should tag along.

ubertank dofollow funnyclown

 ;)
Title: Re:Getting a tank to follow a different group?
Post by: sharkyjoe on 25 Apr 2005, 02:43:24
I used Vortog's group leader in the Editor Depot (Joining Player units or small groups Vortrog 1.0)  and used the the ranking of tank is low. Put them in Column formation.
Looks like there are others in there too.
Title: Re:Getting a tank to follow a different group?
Post by: RujiK on 25 Apr 2005, 03:43:37
Or you could just try something simple, make a game logic behind or near your group and just make a loop to have the tank continue to move to the game logic, thus giving the illusion that he is following you.
Title: Re:Getting a tank to follow a different group?
Post by: macguba on 25 Apr 2005, 10:50:25
This is much harder than it looks.    Script from my beta mission regina proeliorum attached.   May help.     Use/adapt as you like, just mention where you got it from.