Jump to content

How to use ObjectReference.TranslateToRef()?


thousande

Recommended Posts

Hi!

 

I am trying to move an object (horizontally)

 

I have set up 1 XMarker and a MoveableStatic reference to be moved

 

In my script attached to the MoveableStatic reference I execute the Self.TranslateToRef(m1, 500.0, 0.0) in the OnCellLoad event

 

Event OnCellLoad()
Self.TranslateToRef(Fleet, fFleetSpeed, 0.0)
EndEvent

 

What is happening is that the reference moves to the XMarker, but not animating.

 

I expected it to kind of tick/animate towards the marker

I have seen others do something similar for Skyrim, but for some reason this does not work in my case

 

I am using Creation Kit 1.10.15.0 and the game is Fallout 4

 

Am I misunderstanding something or does this not work in Fallout 4?

 

Thank you in advance!

 

Link to comment
Share on other sites

Assuming, your talking about rotating it while translating to the object..Additional wizardry is required. Something like this: https://www.creationkit.com/index.php?title=Spatial_functions_and_snippets

 

I have no foggy idea how to apply that to translatetoref. When Einstein and Newton needs to get involved with my mods, I back away. Too much for my brain.

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...