Page 1 of 1
Allow cargo pod scripting
Posted: Sat Nov 30, 2024 11:46 am
by Moterius
I'm trying to code 'deliveries' to/from another faction (cargo pods), but there seems to be no way to manually spawn in a cargo pod (LuaEntity can only force it to instantly ascend/descend).
My request is thus: Add a script function that allows spawning in a cargo pod along the lines of Surface#spawn_cargo_pod(Surface, {contents}, procession_tick?)
Re: Allow cargo pod scripting
Posted: Sat Nov 30, 2024 6:43 pm
by s6x
You can create_entity a cargo pod and it'll work, but the pod will just sit there. So I agree some API to tell it to start a procession would be useful.
Re: Allow cargo pod scripting
Posted: Sun Dec 01, 2024 11:06 am
by Moterius
Isn't that the already landed pod?
Re: Allow cargo pod scripting
Posted: Sun Dec 01, 2024 10:17 pm
by s6x
No, a landed pod is a "cargo-pod-container" which is a distinct entity (but looks very similar) to a "cargo-pod" entity.
Re: Allow cargo pod scripting
Posted: Tue Dec 03, 2024 6:19 pm
by Oarc
+1 on this. There are LOTS of multiplayer mod and scenario use cases where this would be helpful.
Ability to send cargo pods to different locations other than 0,0 if there are no landing pads, and to be able to direct them to other landing hubs (either on same force or other) would be fantastic.
Re: Allow cargo pod scripting
Posted: Fri Dec 06, 2024 12:22 am
by protocol_1903
+1
Re: Allow cargo pod scripting
Posted: Wed Feb 05, 2025 8:55 pm
by Rseding91
Several cargo pod methods were added for the next release. Likely more will need to be added but for now this is what will be in the next release:
Code: Select all
- Added LuaEntity::create_cargo_pod().
- Added LuaEntity::cargo_hatches read.
- Added LuaEntity::cargo_pod_state read.
- Added LuaEntity::cargo_pod_destination read/write.
- Added LuaCargoHatch.
- Added Luaentity::attached_cargo_pod read.
- Added LuaEntity::rocket read.
Re: Allow cargo pod scripting
Posted: Sat Feb 08, 2025 10:50 pm
by y.petremann
Does anyone found a way to use the new api methods/properties to launch a cargo-pod ?
I tried and for not this is what I got:
viewtopic.php?t=126691
Re: Allow cargo pod scripting
Posted: Sun Jun 28, 2026 7:04 am
by silasary
Rseding91 wrote: Wed Feb 05, 2025 8:55 pm
Several cargo pod methods were added for the next release. Likely more will need to be added but for now this is what will be in the next release:
I find myself needing the ability to yeet things at a surface regardless of whether the player has built a cargo hub yet.
Would it be possible to have a function on the surface itself that lets me create cargo pods that either land in a cargo bay or drop to the ground as an entity?
Re: Allow cargo pod scripting
Posted: Thu Jul 02, 2026 1:18 pm
by Bilka
Please make a new thread for new requests, the request will get lost here in the implemented subforum.