Hello !
The method LuaEntity.create_cargo_pod() :
https://lua-api.factorio.com/2.0.73/cla ... _cargo_pod
https://lua-api.factorio.com/2.0.73/cla ... _cargo_pod
Does not allow to specify which pod.
However, we are already capable of making modded cargo pods by adding a CargoPodPrototype.
It would be nice to have the ability to "summon" such pods with the .create_cargo_pod(), this would allow way more flexibility using real cargo pods.
Thank you !
Best regards
Add argument EntityWithQualityID to .create_cargo_pod()
Re: Add argument EntityWithQualityID to .create_cargo_pod()
Isn't that just surface.create_entity() ?
If you want to get ahold of me I'm almost always on Discord.
Re: Add argument EntityWithQualityID to .create_cargo_pod()
I tried that, but it doesn't look like the cargo pod created with create_entity() behaves like the one created with create_cargo_pod(),
it doesn't belong to a hatch (therefore, doesn't play its animation nor does it occupy the hatch), and even tho its destination is setup correctly, with the same parameters as with a cargo_pod created with create_cargo_pod, it does not reach its destination and doesn't deliver it's payload.
I will add that when I tried using create_entity() I passed the same params I was giving a working cargo pod made with create_cargo_pod(). I also made sure to set the processing ticks to 0. The created entity did lift, but it did not reach its destination.
Create_cargo_pod() seems like a helper that does several things under the hood.
My request is to be able to leverage all this, and override the cargo pod it uses.
it doesn't belong to a hatch (therefore, doesn't play its animation nor does it occupy the hatch), and even tho its destination is setup correctly, with the same parameters as with a cargo_pod created with create_cargo_pod, it does not reach its destination and doesn't deliver it's payload.
I will add that when I tried using create_entity() I passed the same params I was giving a working cargo pod made with create_cargo_pod(). I also made sure to set the processing ticks to 0. The created entity did lift, but it did not reach its destination.
Create_cargo_pod() seems like a helper that does several things under the hood.
My request is to be able to leverage all this, and override the cargo pod it uses.

