• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

machaqueso

Recruit
6 Badges
Apr 3, 2018
2
0
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Surviving Mars
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?