Allow set_passenger to be used on cargo pods

thesixthroc
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Allow set_passenger to be used on cargo pods

Post by thesixthroc »

Currently LuaEntity.get_passenger supports cars, spider vehicles and cargo pods, whereas LuaEntity.set_passenger only supports cars and spider vehicles.

This feature seems to be necessary to script-launch a rocket with a player inside.
Last edited by thesixthroc on Sat May 24, 2025 10:09 am, edited 1 time in total.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: Allow set_passenger to be used on cargo pods

Post by thesixthroc »

This could be tricky to implement if it’s a problem the player may have items in their inventories.

Personally I would be satisfied with an API which returns true only if the attempt to have the player enter a cargopod+rocket was successful.
Last edited by thesixthroc on Sat May 24, 2025 10:09 am, edited 3 times in total.
curiosity
Filter Inserter
Filter Inserter
Posts: 657
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Allow set_passenger to be used on cargo pods

Post by curiosity »

Surely the items limitation is purely for balance. Meaning it should be for the mod to verify.
ahicks
Inserter
Inserter
Posts: 27
Joined: Sat Jul 13, 2024 10:45 pm
Contact:

Re: Allow set_passenger to be used on cargo pods

Post by ahicks »

+1 for Factorio Access. We eventually need a way to launch players through vanilla's mechanism and this looks like it may be the last piece of it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15729
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow set_passenger to be used on cargo pods

Post by Rseding91 »

Added for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”