Teleport Recall
WGS_Dev913 11:49 PM November 3 (EDT) I was wondering if anyone knows how to make a script to teleport the player from Tamriel or an interior cell, to a new worldspace, and back to the exact spot the player teleported from. I tried using X Marker References but for some reason each time I try to use the recall spell to bring the player back where he was, it sends him to the Coordinates he'd be standing in the Tamriel worldspace, but staying in the new worldspace. I dont know what the problem is. Is the X Marker not switching between worldspaces like it should? Or is it moving correctly and just a problem with the script? Heres an example of the scripts if that helps (sorry if its formatted wrong im not used to Wiki yet)
scn Teleport
Begin ScriptEffectStart
if(GetInWorldSpace BlankRealm) Player.MoveTo TeleportRef else
Ref RecallRef
- RecallRef for bringing the player back to where he was
RecallRef.MoveTo Player 0 0 5 Player.MoveTo TeleportRef 0 0 5 endIf
End
scn Recall
Begin ScriptEffectStart
if(GetInWorldSpace BlankRealm) MoveTo RecallRef 0 0 5 else
player.Message "You cannot use that here."
endif
End
My MOD, The Lost Telvanni Codex, has both recall and true-recall spells. RecallRef has to be a static marker. That is in the CS you have to copy an existing one (name it), put in the world somewhere then use it's refID directly. You would have to do the same thing if you used, eg., an item to achieve the same effect. You may have some timing issues too - I did. GuidoBot 03:22, 4 November 2006 (EST)