However, this does not appear to be the case. It instead will always send the pod to near 0,0 of that surface, even if there is a landing pad on the surface.Cargo pods will switch destination type from surface to station before starting descent if there is a station available and CargoDestination::position has not been specified.
Specifically, I am making a rocket silo that launches rockets from Nauvis to the moon, or from the moon to Nauvis.
- I have a custom rocket-silo prototype with launch_to_space_platforms = false.
- It launches a custom rocket-silo-rocket with a custom cargo-pod.
- In defines.events.on_cargo_pod_finished_ascending, I check if the cargo pod is of my custom type and that it's getting launched from Nauvis or its moon. If it is I set the whole cargo_pod_destination field to point to the other body.
Code: Select all
event.cargo_pod.cargo_pod_destination = {
type = defines.cargo_destination.surface,
surface = nauvis_if_moon_otherwise_moon_pseudocode(),
}
See the attached screenshot; that cargo pod was originally launched from the moon.