Teleport Recall

From the Oblivion ConstructionSet Wiki
Revision as of 02:48, 4 November 2006 by imported>WGS Dev913
Jump to navigation Jump to search

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