[2.0.X] Setting player.driving = false does NOT eject player from cargo-pod.

This subforum contains all the issues which we already resolved.
Oarc
Fast Inserter
Fast Inserter
Posts: 121
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

[2.0.X] Setting player.driving = false does NOT eject player from cargo-pod.

Post by Oarc »

My expectation is that player just gets ejected and placed wherever the cargo-pod position happens to be on that surface.

I was trying this because I recently posted this other one, which I understand the response and its not a problem: viewtopic.php?f=48&t=120296
I'm trying to move a player to a different landing site and don't want to wait for them to land at 0,0.

No problem if this is considered a minor issue too. I just figured I would point it out since it seems like an inconsistency and it would be easier for me to eject and then teleport somewhere else, rather than teleport to a different surface first as a workaround to ejecting while "driving" a cargo-pod.

Thank you for all your hard work! Love the game!
Rseding91
Factorio Staff
Factorio Staff
Posts: 14244
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.X] Setting player.driving = false does NOT eject player from cargo-pod.

Post by Rseding91 »

Thanks for the report. For the next release I've added a new method on LuaControl called set_driving() which will accept a true/false - that functions identically to writing ::driving. However it will also have a 2nd parameter called "force" which defaults to false, when set to true it will force eject the player from any vehicle they're in even if they normally wouldn't be able to leave. Since deleting ::driving would break existing mods they will both exist.
If you want to get ahold of me I'm almost always on Discord.
Oarc
Fast Inserter
Fast Inserter
Posts: 121
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

Re: [2.0.X] Setting player.driving = false does NOT eject player from cargo-pod.

Post by Oarc »

Wonderful, thank you!
Post Reply

Return to “Resolved Problems and Bugs”