public virtual void CommandFollow(ModuleWingCommander leader, int followerIndex)
        {
            if (!pilotEnabled)
            {
                return;
            }
            if (leader == vessel || followerIndex < 0)
            {
                return;
            }

            Debug.Log(vessel.vesselName + " was commanded to follow.");
            command            = PilotCommands.Follow;
            commandLeader      = leader;
            commandFollowIndex = followerIndex;
        }
Exemple #2
0
        public virtual void CommandFollow(ModuleWingCommander leader, int followerIndex)
        {
            if (!pilotEnabled)
            {
                return;
            }
            if (leader == vessel || followerIndex < 0)
            {
                return;
            }

            if (BDArmorySettings.DRAW_DEBUG_LABELS)
            {
                Debug.Log("[BDGenericAIBase]:" + vessel.vesselName + " was commanded to follow.");
            }
            command            = PilotCommands.Follow;
            commandLeader      = leader;
            commandFollowIndex = followerIndex;
        }