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.
Allow set_passenger to be used on cargo pods
-
- Long Handed Inserter
- Posts: 82
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
-
- Long Handed Inserter
- Posts: 82
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: Allow set_passenger to be used on cargo pods
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.
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.
Re: Allow set_passenger to be used on cargo pods
Surely the items limitation is purely for balance. Meaning it should be for the mod to verify.
Re: Allow set_passenger to be used on cargo pods
+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.