Read Player Last Visited Planet

Place to get help with not working mods / modding interface.
bradythehuman
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Aug 29, 2025 4:17 am
Contact:

Read Player Last Visited Planet

Post by bradythehuman »

When a player dies in space they respawn on the planet they visited most recently. Is there a way to read a players most recently visited planet during runtime? I don't want to kill the player but I do want to teleport them to their most recently visited planet from space. I looked in LuaPlayer, LuaForce, LuaGameScript, etc but couldn't find anything. If not I can track it and store it in storage.
Post Reply

Return to “Modding help”