Difference between revisions of "TranslateTo - ObjectReference"

Jump to navigation Jump to search
m
→‎Collision boxes, bugs and other oddities: Added note regarding translation of havok items using SetMotionType.
imported>Verteiron
m (→‎Collision boxes, bugs and other oddities: -- Added note regarding OnLoad event)
imported>Verteiron
m (→‎Collision boxes, bugs and other oddities: Added note regarding translation of havok items using SetMotionType.)
Line 57: Line 57:
* You can however translate an enabled activator when it has no 3D... meaning you can do it from ANYWHERE at any time - as long as it was enabled (and a slight wait or other function afterwards).
* You can however translate an enabled activator when it has no 3D... meaning you can do it from ANYWHERE at any time - as long as it was enabled (and a slight wait or other function afterwards).
* The function does not work on MiscItems (presumably for the same reason). [[SetPosition - ObjectReference]] works though.
* The function does not work on MiscItems (presumably for the same reason). [[SetPosition - ObjectReference]] works though.
* '''It is possible to translate havok-enabled items''' by [[SetMotionType_-_ObjectReference|setting their MotionType]] to motion_keyframed. After being translated, they can be forced back into Havok simulation by changing their motion type back to motion_dynamic and [[ApplyHavokImpulse - ObjectReference|applying a small havok impulse]]. Deleting havok objects or changing their motion type mid-translation may cause a CTD: use [[StopTranslation - ObjectReference|StopTranslation]] first.
* You cannot translate something that is disabled (or was just enabled). You will get a no3D error. It may even be necessary to add a [[Wait - Utility]] statement or double-check the load status using [[Is3DLoaded - ObjectReference]] before translating an object after its OnLoad event is called.
* You cannot translate something that is disabled (or was just enabled). You will get a no3D error. It may even be necessary to add a [[Wait - Utility]] statement or double-check the load status using [[Is3DLoaded - ObjectReference]] before translating an object after its OnLoad event is called.


Anonymous user

Navigation menu