Talk:TranslateTo - ObjectReference

From the CreationKit Wiki
Revision as of 04:01, 16 June 2012 by imported>Phinix
Jump to navigation Jump to search

Hi, I used TranslateTo to move object just in one direction (Y) upon clicking a button (ImperialButton01 - I think It's called). Everything works just fine, the object moves "forwards" but it's collision information, or whatever it's called, does not. I'm still able to walk through the object, shoot arrows through it just like it's not there (on the new place) but I can see it. If I try to walk on it's original position I can't just like it's still there, arrows keep hitting the empty (original object's position) space.

script is pretty simple

just two properties one with moving object one with button

when activated TranslateTo with parameters (position and speed)

end

Activating object is the button set as moving object's activation parent

Is there something else I have to do to make the translation process "real"?

What is the object that you are trying to move? --Fg109 10:24, 12 April 2012 (EDT)


It's an ArcheryTarget - could it be because it's supposed to be static object?-- Umprie

Yes, that's probably why. If you want the collision to update properly, you would need to edit the nif file containing the model and change the value for the BSX flags. --Fg109 16:17, 12 April 2012 (EDT)


In order for regular collisions to work with TranslateTo, you must edit the bhkRigidBody settings in NifSkope to change:

Layer: Change OL_STATIC to OL_ANIM_STATIC.

Layer Copy: Change OL_STATIC to OL_ANIM_STATIC.

Motion System: Change MO_SYS_BOX_STABILIZED to MO_SYS_BOX.

Also, the static itself must be created under MovableStatic in the CK, not the regular Static section. --Phinix 05:01, 16 June 2012 (EDT)