Difference between revisions of "Talk:MoveTo"

From the CreationKit Wiki
Jump to navigation Jump to search
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(ObjectRefer...")
 
imported>Elec0
Line 2: Line 2:


   Scriptname E0HelloWorld extends ObjectReference   
   Scriptname E0HelloWorld extends ObjectReference   
   Event onActivate(ObjectReference akActivate)
   Event onActivate(ObjectReference akActivate)
  Debug.Notification("Teleporting...")
      Debug.Notification("Teleporting...")
    akActivate.MoveTo(WhiterunCOCREF)
      akActivate.MoveTo(WhiterunCOCREF)
   EndEvent
   EndEvent
And it gives me the error that WhiterunCOCREF isn't defined, when I've set the name of the reference to that.
And it gives me the error that WhiterunCOCREF isn't defined, when I've set the name of the reference to that.

Revision as of 00:19, 8 February 2012

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.