In Editor place a tank(tankA) and another tank (tankB)
give both names
in the init-Field of tankA insert:
this addAction ["Tow Tank","tow.sqf", ["Tank"], 1, false, true, "","((getposatl _target) distance (getposatl (nearestObject [_target, 'Tank']))) < 10"];
as you can see it should show the action in 10m proximity to another tank but it is shown after mission start
Second Test:
In Editor place a tank(tankA) and another tank (tankB)
give both names
exec this code and see the result:
systemchat str nearestObject [tankA, 'Tank'];
systemChat will write tankA