_car1 = _this select 0
_car2 = _this select 1
_car3 = _this select 2
~0.2
_car3 DoFollow _car1
#Follow
~0.5
_car2 DoMove getPos _car1
~0.2
? (_car2 distance _car1)< 20 : DoStop _car2
? (_car1 distance _car3) > 50 : _car3 DoMove getPos _car2
? (_car2 distance _car3) < 20 : DoStop _car3
? (_car2 distance _car3) > 20 : _car3 DoFollow _car1
? (w1 In _car1) AND (driver _car2 != objNull) : GoTo "Follow"
this is a little script i used for a mission... basically it was to make 3 cars follow each other and stop if one guy got out... thats the last line which can be voided in this script as long as you add a loop (goto : "Follow")
exec it using:
[carname1, carname2, carname3] exec "script.sqs"
for 2 cars, just add in 2 names... should still work