private static void SpawnLemming() { m_spawnCount--; if (m_spawnCount <= 0) { m_timeToNextSpawn = -1; return; } Vector3D spawnPosition = m_spawnMedical.PositionComp.GetPosition() + (MyMedicalRoom.GetSafePlaceRelative() * (Matrix)m_spawnMedical.WorldMatrix).Translation; MatrixD matrix = m_spawnMedical.WorldMatrix; matrix.Translation = spawnPosition; var character = MyCharacter.CreateCharacter((Matrix)matrix, Vector3.Zero, "Lemming" + m_lemmings.Count, null, null, false, true); character.EnableJetpack(false, false, true, true); character.AIMode = true; MatrixD m = character.WorldMatrix; m = m * Matrix.CreateRotationY(-MathHelper.PiOver2); m.Translation = character.PositionComp.GetPosition(); character.PositionComp.SetWorldMatrix(m); character.Save = false; MyLemmingCharacter lemming = new MyLemmingCharacter() { Character = character, }; m_lemmings.Add(lemming); }