Disable passengers in car

Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Disable passengers in car

Post 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Disable passengers in car

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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Disable passengers in car

Post by Rseding91 »

What's the use-case?
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Disable passengers in car

Post 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Disable passengers in car

Post 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

nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: Disable passengers in car

Post 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 ?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Disable passengers in car

Post by DaveMcW »

Thanks for implementing this!

Post Reply

Return to “Implemented mod requests”