public static void SetupActors(MyMissionID missionID) { int missionNumber = MyMissions.GetMissionNumber(missionID); if (missionNumber < 0) { return; } MyEntity entity; if (MyEntities.TryGetEntityByName("Marcus", out entity)) { var marcus = entity as MySmallShipBot; SetupMarcus(missionNumber, marcus); } if (MyEntities.TryGetEntityByName("RavenGirl", out entity)) { var tarja = entity as MySmallShipBot; SetupTarja(missionNumber, tarja); } if (MyEntities.TryGetEntityByName("RavenGuy", out entity)) { var valentin = entity as MySmallShipBot; SetupValentin(missionNumber, valentin); } }