Alright Im making a mission with a downed pilot. The whole "get there before the russians do" type. I made a very simple script allowing for when any friendly unit reaches within 25 feet from the pilot, the pilot will join that closet unit, and for some reason it wont work. Any unit that comes to the pilot....the pilot wont join !!! AHH...so tell me what is wrong with this:
;RESCUE.sqs by Hoot
_rescuer=[player,bravo]
_pilot=pilot
#check
~5
_dis=99999
{_d=_pilot distance (leader _x);if (_d<_dis) then {_dis=_d;_closest=_x}} foreach _rescuer
?_dis > 25:goto "check"
[_pilot] join _closest
exit
If anyone could jsut tell me what is wrong, and mabey make an example mission or soemthing or exact directions w/e. Help is appreciated! THANK YOU!
-=Kilo=-