I'm trying to use this function to attach units to transports, but I seem to be doing something wrong.
ScenarioFramework.AttachUnitsToTransports(units, transports)
After running a script that spawns a transport, I've tried:
transport = spawnedunit ScenarioFramework.AttachUnitsToTransports({"xel0305", "uel0303"}, {transport})
Also Tried:
transports = aiBrain:GetListOfUnits(categories.xea0306, false)
units = {"xel0305", "uel0303"}
ScenarioFramework.AttachUnitsToTransports(units, transports)
And other combinations. The transport still spawns with no units attached.