Replace an object with another via script

Post » Sat Jun 15, 2013 11:54 pm

Hey guys, is it possible through scripting to replace an object with another object at runtime? Say I wanted to swap a farm table for a noble table, for example. Can this be done via script?

Edit:

After thinking about it I suppose using PlaceAtMe and getting the coordinates of the object, then disabling the original object, it could be done. However is there a function that will do this for me?

User avatar
Shelby McDonald
 
Posts: 3497
Joined: Sat Jan 13, 2007 2:29 pm

Post » Sat Jun 15, 2013 11:29 pm

Or you can swap them via moveto by moving the replacer from a cell (a holding cell) to the x marker where the replacee is and having the replacee moveto where the replacer was. So you'd need to make a holding cell and 2 x markers.

Probably an easier way to do it, but that's how I would handle it.

User avatar
maria Dwyer
 
Posts: 3422
Joined: Sat Jan 27, 2007 11:24 am


Return to V - Skyrim