OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
Not sure on how well it works, but try the command "dofollow" and the tank should tag along.
ubertank dofollow funnyclown
;)
-
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.
-
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.
-
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.