[2.0.14] player.teleport doesn't work when inside of a cargo-pod/rocket if teleporting to the same surface
Posted: Fri Nov 08, 2024 1:13 am
player.teleport works, when the player is dropping in a cargo-pod, if I teleport to a different surface.
However, it does NOT work when trying to teleport to the same surface the cargo-pod is currently dropping on.
Same for taking off in a rocket.
Seems like an inconsistency or bug maybe?
Steps to repro:
1. Start a freeplay game, cheat to make sure another planet surfaces is available first.
2. Setup a rocket, get in.
3. Test teleport command:
4. Teleport command WORKS if surface is different than the one the cargo-pod/rocket is currently on, but not if it is the same.
Expectation: Teleport command should work in all cases (or do the same thing in all cases).
However, it does NOT work when trying to teleport to the same surface the cargo-pod is currently dropping on.
Same for taking off in a rocket.
Seems like an inconsistency or bug maybe?
Steps to repro:
1. Start a freeplay game, cheat to make sure another planet surfaces is available first.
2. Setup a rocket, get in.
3. Test teleport command:
Code: Select all
/c game.player.teleport({0,0}, game.surfaces["nauvis"])
Expectation: Teleport command should work in all cases (or do the same thing in all cases).