Jump to content

Need help with teleport script on a creature?


Recommended Posts

I don't know if it's possible, but I'm trying to make a script where, if the player 'activates' a certain custom creature, they are teleported to a interior cell.

 

I've done it on Oblivion, but the similar method is just not working for me, any ideas or help would be appreciated!

 

I did try this script

 

Scriptname TeleportSomewhereScript extends ObjectReference

ObjectReference Property TargetLocation Auto

Event OnActivate(ObjectReference akActionRef)
Game.GetPlayer().MoveTo(TargetLocation)
EndEvent

 

But it doesn't want to work, it keeps saying compilation failed, after I give the script a proper name and change the (TargetLocation) to the marker I used, which was a XMarker.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...