public virtual void FollowUnit(Unit Target, int MinDist, int MaxDist,int Speed, eFormationType Form) { if (Target == null || Target == FollowTarget) return; StopFollow(); Target.CbtInterface.AddFollower(Obj.Oid); FollowTarget = Target; FollowMinDist = MinDist; FollowMaxDist = MaxDist; Formation = Form; FollowSpeed = Speed; }
public virtual void FollowUnit(Unit Target, int MinDist, int MaxDist, int Speed, eFormationType Form) { if (Target == null || Target == FollowTarget) { return; } StopFollow(); Target.CbtInterface.AddFollower(Obj.Oid); FollowTarget = Target; FollowMinDist = MinDist; FollowMaxDist = MaxDist; Formation = Form; FollowSpeed = Speed; }