Hey, thank you very much, just one little problem, it doesnt work. LOL, no worries though. This is all that I have:
-rescue.sqs (with all that you gave me in it)
_rescuer=[alpha,bravo,charlie,delta]
_pilot=pilot
#check
~5
_dis=99999
{_d=_pilot distance (leader _x);if (_d<_dis) then {_dis=_d;_closest=_x}} foreach _rescuer
?_dis > 10:goto "check"
[_pilot] join _closest
exit
-init.sqs ([] exec "rescue.sqs")
-several squads (alpha-delta) that have the "alpha = groupthis" in their init fields.
-A pilot named "Pilot"
The script works fine, but I think the "Join" command line is worng, because that is the only thing that the pilot does not do, join the actual group.
Im not sure though, so if you find the problem, let me know. Thanks again!
-=Kilo=-