
Private static void GetSafeBoundingBoxForPlayers( Vector3D start, double spawnDistance, out BoundingBoxD output)īoundingSphereD sphere = new BoundingSphereD( start, tolerance) While ( i = m_spawnGroupCumulativeFrequencies. Private static MySpawnGroupDefinition PickRandomSpawnGroup() Public override void UpdateBeforeSimulation() Private static Predicate IsCockpitClosed = ( M圜ockpit cockpit) => cockpit. CreateEvent( new MyDefinitionId( typeof( MyObjectBuilder_GlobalEventBase), "SpawnCargoShip ")) If ( cargoShipEvent = null & shouldHaveCargoShips) GetEventById( new MyDefinitionId( typeof( MyObjectBuilder_GlobalEventBase), "SpawnCargoShip ")) WriteLine( "End pre-loading neutral ship spawn groups. M_spawnGroupTotalFrequencies += spawnGroup. Clear() įoreach ( var spawnGroup in m_spawnGroups) WriteLine( "Pre-loading neutral ship spawn groups. Private static List m_spawnGroups = new List() Private static float m_upVecMultipliers = Private static float m_spawnGroupTotalFrequencies = 0. Private static List m_spawnGroupCumulativeFrequencies = new List() Private static List m_raycastHits = new List() Private const int EVENT_SPAWN_TRY_MAX = 3 Public static TimeSpan NEUTRAL_SHIP_MAX_TIME = TimeSpan. FromMinutes( 13) // Re-spawn time = 13-17 minutes Public static TimeSpan NEUTRAL_SHIP_MIN_TIME = TimeSpan. FromSeconds( 10) // If spawning does not succeed, retry in 10 seconds

Public static TimeSpan NEUTRAL_SHIP_RESCHEDULE_TIME = TimeSpan. Public const float NEUTRAL_SHIP_SPAWN_OFFSET = 500. Public const float NEUTRAL_SHIP_MINIMAL_ROUTE_LENGTH = 10000. Public const float NEUTRAL_SHIP_DIRECTION_SPREAD = 0. Public const float NEUTRAL_SHIP_FORBIDDEN_RADIUS = 2000. Public const float NEUTRAL_SHIP_SPAWN_DISTANCE = 8000. Definitions Ĭlass MyNeutralShipSpawner : MySessionComponentBase Learn more about bidirectional Unicode characters To review, open the file in an editor that reveals hidden Unicode characters.

There are some modding guides floating around that address this as well.This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. Let me know if this answers your question.

I've posted a suggestion regarding this - Īs a workaround, I've added atmospheric thrusters to my starting rover in the mod I was trying to do this for. Initially I thought I could just mod the altitude that you start at with the PlanetaryLander SubtypeId, but i haven't had luck. = %appdata%\SpaceEngineers\Mods\M圜ustomRespawnShipMod\Īs far as the respawning directly on the surface, I have yet to find a way how to do it. If you are using a custom respawn ship mod, you will want to also modify the name in the tag in \Data\RespawnShips.sbc to match the from \Data\Prefabs\CustomShip.sbc. The AtmosphericLander is left enabled, while the RespawnShip is disabled.
