Is there any way at all to relocate a Static object through

Post » Sat Nov 17, 2012 1:12 pm

For a script I'm working on, I need to move Static objects under the ground (I tried Disabling first but in some cases it's impossible to Disable, which is when the static has an Enable State Parent).

I tried it with SetPosition(), but when I try that the Papyrus logs simply say ''cannot be moved'', and from what I managed to find on google it seems like setPosition() simply doesn't work on Static objects, but it does on MovableStatic objects. The problem is, it's not really feasible to manually replace all the static objects which I need to deal with by MovableStatic objects, and it's not possible to disable them and place a MovableStatic version copy through script either because like I said at the start, Disable() doesn't work in some cases either.

Does anyone know any other functions which DO work on Static objects, or is it simply impossible to relocate them in any way at all?
User avatar
Daniel Lozano
 
Posts: 3452
Joined: Fri Aug 24, 2007 7:42 am

Post » Sat Nov 17, 2012 3:13 pm

Disable should definitely work as long as the properties are set up. The best way would be to place an x marker, have that as the parent but initially disabled. Then have the statics set to have the marker as the enable parent, but tick the box that says something like opposite of parent.

Have the x marker as a property. Then use the enable object script. When that fires the marker will be enabled, and the statics disabled.
User avatar
Philip Lyon
 
Posts: 3297
Joined: Tue Aug 14, 2007 6:08 am

Post » Sat Nov 17, 2012 10:47 am

No, I have no control over the objects I need to disable. They are vanilla objects and objects placed by other mods which I need to disable, and those objects may or may not already have enable parents (and if they do, it's impossible to disable them through script)
User avatar
Matt Bee
 
Posts: 3441
Joined: Tue Jul 10, 2007 5:32 am


Return to V - Skyrim