Difference between revisions of "Questions"
→Using Scripts To Add Object and Raising it: or MoveTo
imported>ShadowDancer (answering question about moving object) |
imported>DragoonWraith (→Using Scripts To Add Object and Raising it: or MoveTo) |
||
Line 1,098: | Line 1,098: | ||
The second line will move your object up 10 units on the Z axis to the new location defined by the zposition reference. | The second line will move your object up 10 units on the Z axis to the new location defined by the zposition reference. | ||
::[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 10:05, 7 July 2006 (EDT): Alternatively, you could use [[MoveTo]], like so: | |||
MoveTo (object ID or ref var) 0 0 10 | |||
::The Wiki recommends [[MoveTo]] over [[SetPos]]. Not entirely sure why, but in this case, the code is shorter with [[MoveTo]]. |