Loading cargo via lua
Posted: Sun Mar 01, 2026 3:28 am
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.
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.