Greetings all,
I'm currently working on a player home that can only be entered by using a spell to teleport to it.
The spell, when used, moves an xmarker called "XM1" to the player's current location.
Exiting the home then teleports the player to XM1, effectively bringing the player back to the world in the same spot they left.
Problem is, when the spell is used from inside the home, the player is teleported back inside whenever they try to exit.
This creates the problem of the player being trapped inside forever.
I'd like to remove the spell from the player when it is cast, and return it only when the player exits the home.
How can I do this? Any other ideas are also welcome.
Thanks