Medical ai command

If player is leader of group and not uncunscious, AI has to be ordered to move close to patient.
If there is a nearby unit able to help, he will do so.
If patient is an enemy, he needs to be uncunscios to receive help. He will lose his weapons and get a captive/surrender state.
Do medic AND patient need to be local? If only medic needs to be, [[_x, _unit, _task], "AGM_Medical_fnc_aiTreat", _x] call AGM_Core_fnc_execRemoteFnc; might do de job?