Beispiel #1
0
        void Aggregator3Destroyed()
        {
            MySmallShipBot marcus   = (MySmallShipBot)MyScriptWrapper.GetEntity("Marcus");
            MyEntity       destroy4 = MyScriptWrapper.GetEntity((uint)EntityID.PrefabAutodestruct4);

            marcus.Attack(destroy4);
        }
Beispiel #2
0
        void autodestructDestroy_OnMissionLoaded(MyMissionBase sender)
        {
            MySmallShipBot marcus   = (MySmallShipBot)MyScriptWrapper.GetEntity("Marcus");
            MyEntity       destroy3 = MyScriptWrapper.TryGetEntity((uint)EntityID.PrefabAutodestruct3);

            MyScriptWrapper.StopFollow(marcus);

            if (destroy3 != null)
            {
                marcus.Attack(destroy3);
            }
        }
        void OnSpawnpointBotSpawned(MyEntity spawnpoint, MyEntity bot)
        {
            if (m_spawnPoints.Contains(spawnpoint))
            {
                m_currentBotsCount++;

                bot.OnClose += new Action <MyEntity>(bot_OnClose);

                MySmallShipBot botShip = bot as MySmallShipBot;
                botShip.SleepDistance = 10000;
                botShip.Attack(ChooseClosestPlayer(bot));
            }
        }