Ejemplo n.º 1
0
        public bool AssignTarget(IMyEntity target)
        {
            if (target == null)
            {
                return(false);
            }
            // if(target.OwnerId == Entity.OwnerId) return false; //faction check?
            bool success = GuidedMissileTargetGridHook.SetMissileTargetForGrid(Entity.GetTopMostParent(), target);

            return(success);
        }
Ejemplo n.º 2
0
        public bool AssignTarget(IMyEntity target)
        {
            ModDebugger.Launch();
            Log.Info("called assignTarget with entity " + target);
            if (target == null)
            {
                return(false);
            }
            // if(target.OwnerId == Entity.OwnerId) return false; //faction check?
            bool success = GuidedMissileTargetGridHook.SetMissileTargetForGrid(Entity.GetTopMostParent(), target);

            return(success);
        }