Possible to move statics with code?

Post » Tue Jun 19, 2012 5:45 pm

Simple question, but couldn't find the answer by using search... took me to a lot of bug reports.

I'm basically asking if there is a way to alter the 3D Data of a static mesh via code at runtime, say to make pillars/walls move and such?
User avatar
Haley Merkley
 
Posts: 3356
Joined: Sat Jan 13, 2007 12:53 pm

Post » Tue Jun 19, 2012 11:29 pm

of course. http://www.creationkit.com/SetPosition_-_ObjectReference
User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Tue Jun 19, 2012 11:06 am

of course. http://www.creationkit.com/SetPosition_-_ObjectReference

Ty for pointing this out to me.
User avatar
Laura Cartwright
 
Posts: 3483
Joined: Mon Sep 25, 2006 6:12 pm

Post » Tue Jun 19, 2012 2:04 pm

Translateto might work better if you want to see it move. It sounds like it should work from the wiki. Haven't tested it though.
User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am

Post » Tue Jun 19, 2012 7:55 pm

Translateto might work better if you want to see it move. It sounds like it should work from the wiki. Haven't tested it though.

I did not know about this function. It definitely sounds better than SetPosition!
User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Post » Tue Jun 19, 2012 9:50 pm

Its listed in the script reference page on the wiki and if you still down on it sounds ideal for this.
User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am

Post » Tue Jun 19, 2012 10:55 pm

Anyway, the collision won't move. You need to disable and enable the object again once it reach the wanted position.
User avatar
Nymph
 
Posts: 3487
Joined: Thu Sep 21, 2006 1:17 pm

Post » Tue Jun 19, 2012 2:42 pm

Anyway, the collision won't move. You need to disable and enable the object again once it reach the wanted position.

Does this apply for the TranslateTo function or just the moveto? I've been trying to get the SplineTranslateToRef (And translateTo/TranslateToRef/etc) function to work for a long time on my static object reference but it never moves. I even tried disabling before the function call and enabling after. Is there some secret to how this is done? Can it even work for statics or just activators?
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Tue Jun 19, 2012 3:45 pm

I think to use the Translate functions, you need to create a version of it that's a MoveableStatic and not just a static.
User avatar
Jessica Phoenix
 
Posts: 3420
Joined: Sat Jun 24, 2006 8:49 am

Post » Tue Jun 19, 2012 10:47 pm

Redwood Elf is right. Also, collision moves with TranslateTo. But it will ignore other objects' collision, which means that it will still go through walls in such.

For example, if you use Translate to on a ship, you can stand on the ship and let it carry you, but the ship will still go through cliffs while you won't.
User avatar
Tai Scott
 
Posts: 3446
Joined: Sat Jan 20, 2007 6:58 pm

Post » Tue Jun 19, 2012 11:53 am

Awesome. Thanks - I always thought "moveable statics" were limited to just 'grabbable' objects or havok motion.
User avatar
Nikki Morse
 
Posts: 3494
Joined: Fri Aug 25, 2006 12:08 pm


Return to V - Skyrim