Loading cargo via lua

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
stepbackjumper2
Posts: 33
Joined: Tue Jul 04, 2023 11:00 pm

Loading cargo via lua

Post 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.
Kushan04
Posts: 1207
Joined: Tue Jun 28, 2005 9:27 pm
Location: USA
Contact:

Re: Loading cargo via lua

Post by Kushan04 »

I think Transfer and Unload cargo are good indications of how to do it...
Post Reply

Return to “Lua Legion”