Allow set_passenger to be used on cargo pods
-
- Fast Inserter
- Posts: 103
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Allow set_passenger to be used on cargo pods
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.
-
- Fast Inserter
- Posts: 103
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: Allow set_passenger to be used on cargo pods
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.
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.
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.
Re: Allow set_passenger to be used on cargo pods
Added for the next release.
If you want to get ahold of me I'm almost always on Discord.