Talk:MoveTo - ObjectReference

From the CreationKit Wiki
Revision as of 00:20, 8 February 2012 by imported>Elec0 (Created page with "If I try this script on an object with the reference placed in the worldspace and named. Scriptname E0HelloWorld extends ObjectReference Event onActivate(ObjectRefere...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

--Elec0 00:20, 8 February 2012 (EST)