First, I'm mostly a C#/.Net developer and total n00b on LUA so there might be obvious "Lua way" things i'm not seeing ...
I'm trying to figure out how drones/shuttles decide which cargo to move to depots with the goal of creating a mod that have RCTransports doing it for larger amounts/distances like a food supply for a remote mining outpost or to cover for shuttles during dust storms.
I have gone through DroneHub.Lua, ShuttleHub.Lua and LRTransport.Lua and i can't figure out how demand_queues and supply_queues get populated. Does Request_FindShuttleTask populate them by reference on LRTransport.Lua?
I'm trying to figure out how drones/shuttles decide which cargo to move to depots with the goal of creating a mod that have RCTransports doing it for larger amounts/distances like a food supply for a remote mining outpost or to cover for shuttles during dust storms.
I have gone through DroneHub.Lua, ShuttleHub.Lua and LRTransport.Lua and i can't figure out how demand_queues and supply_queues get populated. Does Request_FindShuttleTask populate them by reference on LRTransport.Lua?