I'm trying to work out the todo part above & hoping someone might have some insight.Cargo pods break when hitting the surface of planets. You need landing pads! Ensures a fresh start on each planet.
For now, you'll have to disable the mod if landing fresh on Aquilo.
Todo: Disable once Aquilo is unlocked, or only destroy pods landing on some planet surfaces. If anyone knows how to achieve this please let me know.
Getting technical - the "cargo-pod" entity spawns a "cargo-pod-container" which is a "temporary-container" prototype. To achieve what I have so far I set the "cargo-pod-container"'s TTL to 1 tick, basically causing instant death.
My first attempt at this involved searching for all cargo-pod-container's every 1 second and destroy()ing them. However, This seemed to introduce some stutter each time the search occurred so I'm presuming it was too intensive an operation. Plus, the cargo-pod-container would be on the surface for up to 1 second before I could destroy it.
The second attempt involved modifying the prototype at runtime so the TTL is set based on if Aquilo research has been unlocked. However, as most probably know but I just found out, you can't modify the prototype at runtime.
The third attempt involved setting the surface properties (inherited field of "temporary-container" prototypes) to match that of Aquilo but it didn't seem to have any effect.
I've also tried to find an event the script can listen to that triggers when the "cargo-pod-container" spawns, but found nothing.
Does anyone know how I might achieve what I'm after?