Difference between revisions of "Teleport Recall"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WGS Dev913
 
imported>WGS Dev913
m
Line 13: Line 13:
Ref RecallRef
Ref RecallRef
;RecallRef for bringing the player back to where he was
;RecallRef for bringing the player back to where he was
AaaGodMarkReturnRef.MoveTo Player 0 0 5
RecallRef.MoveTo Player 0 0 5
Player.MoveTo AaaGodMarkWarpRef 0 0 5
Player.MoveTo TeleportRef 0 0 5
endIf
endIf


Line 26: Line 26:


if(GetInWorldSpace BlankRealm)
if(GetInWorldSpace BlankRealm)
MoveTo AaaGodMarkReturnRef 0 0 5
MoveTo RecallRef 0 0 5
else
else



Revision as of 02:48, 4 November 2006

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