Page 1 of 1

Disable passengers in car

Posted: Fri Jun 14, 2019 8:54 am
by DaveMcW
I would like a way to prevent passengers from being able to enter a car, only the driver is allowed.

Doing it through a data.lua property would make more sense, but I can work with a control.lua property if that is easier.

Re: Disable passengers in car

Posted: Fri Jun 14, 2019 8:59 am
by darkfrei
Try to set some character to the https://lua-api.factorio.com/latest/Lua ... _passenger

But it would be nice to have just max_passenger_amount = 0 (or 10 for some bus vehicle).

Re: Disable passengers in car

Posted: Fri Jun 14, 2019 9:22 pm
by Rseding91
What's the use-case?

Re: Disable passengers in car

Posted: Fri Jun 14, 2019 10:52 pm
by DaveMcW
I am using cars to simulate an off-rail train. Trains do not allow passengers so I want to disable them for consistency. Weapons are disabled so there is nothing for a passenger to do anyway.

Re: Disable passengers in car

Posted: Sat Jun 15, 2019 9:28 am
by darkfrei
DaveMcW wrote:
Fri Jun 14, 2019 10:52 pm
I am using cars to simulate an off-rail train. Trains do not allow passengers so I want to disable them for consistency. Weapons are disabled so there is nothing for a passenger to do anyway.
I've tried it too
https://mods.factorio.com/mod/LandTrains

Re: Disable passengers in car

Posted: Sat Jun 15, 2019 9:56 am
by nosports
I really don't know

but may be AI-Vehicles or such a mod capable of doing something like this ?

in my mind :

Put a beacon into your backpack and choose some AI-Vehicles to follow the beacon around ?

Re: Disable passengers in car

Posted: Mon Dec 14, 2020 9:21 pm
by DaveMcW
Thanks for implementing this!