Page 1 of 1

Loading cargo via lua

Posted: Sun Mar 01, 2026 3:28 am
by stepbackjumper2
Is there a way to load cargo via Lua?

I’ve explored the Command Lua Docs and found only three functions related to cargo missions: ScenEdit_TransferCargo, ScenEdit_UnloadCargo, and ScenEdit_UpdateUnitCargo.

However, ScenEdit_UpdateUnitCargo seems to simulate loading by generating new cargo rather than moving existing units into a carrier.

Re: Loading cargo via lua

Posted: Sun Mar 01, 2026 5:49 pm
by Kushan04
I think Transfer and Unload cargo are good indications of how to do it...