Allow set_passenger to be used on cargo pods

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 82
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.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: Allow set_passenger to be used on cargo pods

Post by thesixthroc »

Understandably one may think this tricky to implement as 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 the rocket was successful.
Last edited by thesixthroc on Sun Mar 09, 2025 2:53 am, edited 2 times in total.
curiosity
Filter Inserter
Filter Inserter
Posts: 607
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.
Post Reply

Return to “Modding interface requests”