[GS] GetTownPickupAmount not work with all cargo types
Posted: 31 Oct 2013 21:15
I created a script, when I need to monitor all company's picked up cargos. I tried with IORE. The town delivery is work, but the town pickup does'nt work in same town. I know that pickup is working after delivery.
local townpickup = GSCargoMonitor.GetTownPickupAmount(subscriber.company_id, subscriber.cargo_id, town_id, true);
local towndelivery = GSCargoMonitor.GetTownDeliveryAmount(subscriber.company_id, subscriber.cargo_id, town_id, true);
The townpickup variable remaining 0, while the towndelivery showed the correct result.
I tried with passengers and worked it in same town.
I tried with IORE transport to other city and does'nt worked.
So, the delivery is working with all cargo types but the pickup is only with TownEffect cargo types?
The TownEffect is not included in the documentation of GSCargoMonitor.GetTownPickupAmount.
I also tried with nightly and stable 1.3.2 version.
local townpickup = GSCargoMonitor.GetTownPickupAmount(subscriber.company_id, subscriber.cargo_id, town_id, true);
local towndelivery = GSCargoMonitor.GetTownDeliveryAmount(subscriber.company_id, subscriber.cargo_id, town_id, true);
The townpickup variable remaining 0, while the towndelivery showed the correct result.
I tried with passengers and worked it in same town.
I tried with IORE transport to other city and does'nt worked.
So, the delivery is working with all cargo types but the pickup is only with TownEffect cargo types?
The TownEffect is not included in the documentation of GSCargoMonitor.GetTownPickupAmount.
I also tried with nightly and stable 1.3.2 version.