Exemple #1
0
        /// <summary>
        /// Changes the model of the bot
        /// </summary>
        public void changeBotModel(String botModel)
        {
            if (!FunCommands.validEntities.Contains(botModel))
            {
                return;                 //something went wrong, model does not exist
            }

            World.Players.Where(p => p.usesCPE).Send(PacketWriter.MakeChangeModel((byte)ID, botModel));
            Model = botModel;
        }