Disable passengers in car

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 2767
Joined: Tue May 13, 2014 11:06 am
Contact:

Disable passengers in car

Post by DaveMcW » Fri Jun 14, 2019 8:54 am

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: 1974
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Disable passengers in car

Post by darkfrei » Fri Jun 14, 2019 8:59 am

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: 9261
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Disable passengers in car

Post by Rseding91 » Fri Jun 14, 2019 9:22 pm

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: 2767
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Disable passengers in car

Post by DaveMcW » 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.

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

Re: Disable passengers in car

Post by darkfrei » Sat Jun 15, 2019 9:28 am

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
Fast Inserter
Fast Inserter
Posts: 173
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: Disable passengers in car

Post by nosports » Sat Jun 15, 2019 9:56 am

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 ?

Post Reply

Return to “Modding interface requests”

Who is online

Users browsing this forum: mat1k