static void Main(string[] args) { SEMod.BeginPrototype(); Console.Write("Enter a test player name: "); SEMod.playerName = Console.ReadLine(); Console.WriteLine(); Console.WriteLine(); Player JoinedPlayer = new Player(); JoinedPlayer.playerName = SEMod.playerName; JoinedPlayer.UID = 13836692456; JoinedPlayer.IP = System.Net.IPAddress.Loopback.ToString(); Vector3 Location = new Vector3(); Location.x = 0; Location.y = 100; Location.z = 432; JoinedPlayer.Location.Add(Location); JoinedPlayer.Balance = 500; JoinedPlayer.Ping = 41; SEMod.addBots(18); SpaceEngineers.onServerJoinHandler(JoinedPlayer); SpaceEngineers.CommandHandler(true); SEMod.EndPrototype(); }
public static void addBots(int Amount) { for (int BotPlayer = 0; BotPlayer < Amount; BotPlayer++) { Player Bot = new Player(); Bot.playerName = "Bot #" + (BotPlayer + 1); Bot.UID = 13836692457 + BotPlayer; Bot.Ping = 1; Bot.IP = System.Net.IPAddress.Loopback.ToString(); SpaceEngineers.onServerJoinHandler(Bot); } }