Forcing passengers to load / unload via script?

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
chrisell
Well Established Forum Member
Posts: 533
Joined: Mon May 06, 2002 12:00 am
Location: England, Holland and America
Contact:

Forcing passengers to load / unload via script?

Post 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 )
Locked

Return to “[TS] General Discussion”