Talk:MoveTo

From the CreationKit Wiki
Revision as of 00:19, 8 February 2012 by imported>Elec0
Jump to navigation Jump to search

If I try this script on an object with the reference placed in the worldspace and named.

  Scriptname E0HelloWorld extends ObjectReference  
  Event onActivate(ObjectReference akActivate)
     Debug.Notification("Teleporting...")
     akActivate.MoveTo(WhiterunCOCREF)
  EndEvent

And it gives me the error that WhiterunCOCREF isn't defined, when I've set the name of the reference to that.