Page 1 of 1

Allow set_passenger to be used on cargo pods

Posted: Mon Feb 10, 2025 6:53 pm
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.

Re: Allow set_passenger to be used on cargo pods

Posted: Fri Mar 07, 2025 10:58 pm
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.

Re: Allow set_passenger to be used on cargo pods

Posted: Sat Mar 08, 2025 1:58 am
by curiosity
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

Posted: Mon Mar 31, 2025 7:41 pm
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.