Page 1 of 1

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

Posted: Mon Nov 11, 2024 7:00 pm
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!

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

Posted: Mon Nov 11, 2024 9:48 pm
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.

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

Posted: Mon Nov 11, 2024 10:00 pm
by Oarc
Wonderful, thank you!