OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Meatball0311 on 18 Aug 2007, 20:15:17

Title: doFollow...
Post by: Meatball0311 on 18 Aug 2007, 20:15:17
I looked through the forum and did not see any topics on doFollow.

I would like for a pair of AH-1Z's to escort transport helo's.  The transport helo's group leader is named helo1.  I thought a doFollow script would be the easiest way to do this.

This is my script:

_unit = _this select 0

_unit setCombatMode "YELLOW"
_unit setFormation "LINE" 
_unit setSpeedMode "NORMAL"
_unit setBehaviour "COMBAT"
_unit doFollow helo1

exit
------

I put this into the AH-1Z group leaders Init Field:
[this] exec "doFollow.sqs"


The transport helo group moves to its waypoint, but the escorts just hover. 

Is this the best and easiest method or would there be a better way to make helo escorts.

Title: Re: doFollow...
Post by: h- on 19 Aug 2007, 10:44:28
I think doFollow can only be used on units that are in the same group (which is a bit funny :scratch:..) :dunno:

You could try the doFollowUnit script (http://www.ofpec.com/forum/index.php?topic=28711.0) (written by hoz) and see if it could be edited to do what you want, if doesn't work out of the box..
Title: Re: doFollow...
Post by: Wolfrug on 21 Aug 2007, 06:56:28
doFollow is just a fancy way of saying "return to formation" in fact. :) commandFollow will actually say the command out loud.

Wolfrug out.