(3a5d98b) v0.9.6.0
This commit is contained in:
@@ -2041,6 +2041,16 @@ namespace Barotrauma
|
||||
|
||||
commands.Add(new Command("spawnsub", "spawnsub [subname]: Spawn a submarine at the position of the cursor", (string[] args) =>
|
||||
{
|
||||
if (GameMain.NetworkMember != null)
|
||||
{
|
||||
ThrowError("Cannot spawn additional submarines during a multiplayer session.");
|
||||
return;
|
||||
}
|
||||
if (args.Length == 0)
|
||||
{
|
||||
ThrowError("Please enter the name of the submarine.");
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
Submarine spawnedSub = Submarine.Load(args[0], false);
|
||||
|
||||
Reference in New Issue
Block a user