AI side: LST goes to port, unloads, units move to area
Posted: Tue Jun 26, 2018 10:45 pm
I am trying to get an LST (#2801 T61 Capana) to go to a port, unload its cargo and then have those units move to a certain area, and maybe assign some of them to a mission.
I can do it manually at each step, but I can't see how to setup a cargo mission to do it as the LST is not a mothership. I can add the dock as the mothership, but there aren't any units to unload from the dock.
Any ideas on how to go about this? would it be easier to just teleport the units around once the ship arrives? or once the ship arrives have lua unload it (ScenEdit_UnloadCargo (fromUnit, cargoList)) and then what - it seems like when cargo unloads the units get bundled as different things than they were when they went in. Will I know what the unit guids/? are after they unload?
Note to self: if you can't figure out how to add cargo to a ship/other make sure you have the cargo option turned on in the game settings.
I can do it manually at each step, but I can't see how to setup a cargo mission to do it as the LST is not a mothership. I can add the dock as the mothership, but there aren't any units to unload from the dock.
Any ideas on how to go about this? would it be easier to just teleport the units around once the ship arrives? or once the ship arrives have lua unload it (ScenEdit_UnloadCargo (fromUnit, cargoList)) and then what - it seems like when cargo unloads the units get bundled as different things than they were when they went in. Will I know what the unit guids/? are after they unload?
Note to self: if you can't figure out how to add cargo to a ship/other make sure you have the cargo option turned on in the game settings.