Page 1 of 1

Forcing passengers to load / unload via script?

Posted: Thu Dec 17, 2015 1:53 am
by chrisell
Two years (?) later, I'm back on the quest for manual door controls. I've got DoorsOpenCloseRight and DoorsOpenCloseLeft controls in my cab, with buttons, and they nicely open and close the doors to the train. Problem is - I can't find a way to force the game to load the passengers. If I hit "T", the doors on the relevant side of the train open, and passengers come and go. If I use my manual controls, the doors open and everyone just stands there.
I've tried a few things - poked around in the code and tried a number of different methods of forcing the LoadCargo function to run, none of which work.
Any ideas would be appreciated. Thanks.
Oh - these are the various things that I've tried:

Code: Select all

local temp = SysCall ("ScenarioManager:LoadCargo")
SysCall ("ScenarioManager:LoadCargo")
SysCall ("ConsistManager:LoadCargo")
Call( "*:SetControlValue", "LoadCargo", 0, 1 )