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>Lisselli
m (→‎"cannot be moved": Added link to the papryus version page for FO4 in case no one can reach the page for Skyrim's version. Same function.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
If I try this script on an object with the reference placed in the worldspace and named.
== "cannot be moved" ==


  Scriptname E0HelloWorld extends ObjectReference 
I'm working on a mod but have this problem where I cannot move objects with scripts attached. If I move them in the CK they say in place in the game. If I use the console, I get the message "cannot be moved." Does anyone know how to fix this?


  Event onActivate(ObjectReference akActivate)
: Are they static objects? I'm fairly certain those objects cannot be moved. If you want to move them, you'll have to replace them with copies that are of the type "Moveable Static"
  Debug.Notification("Teleporting...")
 
    akActivate.MoveTo(WhiterunCOCREF)
: -- [[User:Cipscis|Cipscis]] 16:37, 26 February 2012 (EST)
  EndEvent
 
And it gives me the error that WhiterunCOCREF isn't defined, when I've set the name of the reference to that.
If you have an issue reaching the papyrus version of this functions' wiki page, visit this one insteand: http://www.creationkit.com/fallout4/index.php?title=MoveTo_-_ObjectReference
 
Fallout 4 is almost a copy of Skyrim's wiki, and uses all the same functions mostly, in addition it's on functions specific to that game. [[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) 2016-11-11T02:52:06 (EST)

Latest revision as of 02:52, 11 November 2016

"cannot be moved"[edit source]

I'm working on a mod but have this problem where I cannot move objects with scripts attached. If I move them in the CK they say in place in the game. If I use the console, I get the message "cannot be moved." Does anyone know how to fix this?

Are they static objects? I'm fairly certain those objects cannot be moved. If you want to move them, you'll have to replace them with copies that are of the type "Moveable Static"
-- Cipscis 16:37, 26 February 2012 (EST)

If you have an issue reaching the papyrus version of this functions' wiki page, visit this one insteand: http://www.creationkit.com/fallout4/index.php?title=MoveTo_-_ObjectReference

Fallout 4 is almost a copy of Skyrim's wiki, and uses all the same functions mostly, in addition it's on functions specific to that game. Lisselli (talk) 2016-11-11T02:52:06 (EST)