已解决!自己用自己想的思路解决了!
--如果队友距离我超过20码,那么队长就跟随 回去接引 距离队长最远的人。
if BeeRange("party1")>=20 and not BeeUnitIsFollow() and not BeeUnitAffectingCombat() and GetNumGroupMembers() >= 1
then
FollowUnit("party1");
end
if BeeRange("party2")>=20 and not BeeUnitIsFollow() and not BeeUnitAffectingCombat() and GetNumGroupMembers() >= 2
then
FollowUnit("party2");
end
if BeeRange("party3")>=20 and not BeeUnitIsFollow() and not BeeUnitAffectingCombat() and GetNumGroupMembers() >= 3
then
FollowUnit("party3");
end
if BeeRange("party4")>=20 and not BeeUnitIsFollow() and not BeeUnitAffectingCombat() and GetNumGroupMembers() >= 4
then
FollowUnit("party4");
end