Jump to content

Recommended Posts

Posted

To rule out the floats or other syntax, try just a lazy ref translate

 

WhateverRef.TranslateToRef(Game.GetPlayer(),500.0)

 

SetMotionType was more of a troubleshooting measure. Do try translating with other random objects just to make sure you have the actual routine covered

Posted
  On 7/29/2022 at 6:58 PM, maxarturo said:

 

Try this: Translate the boat only a couple of meters first and not a long distance which would be crossing several cells, move it 2 meters.
If it moves, then the issue is with the distance been translated that exceeds the cells both actor and mesh are in.
Other than this I can't think of something else right now.

 

It's a test that I have already done, I had thought about it, but nothing to do.

In the meantime I have tested everything in an Interior Test Room, and there everything works correctly, making a copy and past of both the trigger and the boat and obviously, considering that the room, modifying the coordinates in the Propierties of the script, so it cannot be a script or 3D model problem, it has to be something about open space ...

Posted (edited)
  On 7/29/2022 at 10:43 PM, Sphered said:

To rule out the floats or other syntax, try just a lazy ref translate

 

WhateverRef.TranslateToRef(Game.GetPlayer(),500.0)

 

SetMotionType was more of a troubleshooting measure. Do try translating with other random objects just to make sure you have the actual routine covered

I tried it in an Interior and it works ... in an open space the boat remains motionless ...

 

I even tried to insert a Navmesh, or to move both the boat and the script very far from everything in the open space, but nothing

 

The last thing that comes to my mind is that in a new wolrdspace, outdoors, the TranslateTo doesn't work for some reason. . .

If anyone could test this, let me know if it works or not ...

Edited by Tiziano74
Posted
NavMesh plays no role here.

I personally have use the function in question, and almost all the 'translate' functions' on an exterior cell, and it works as long as both the translated object and the player are in the same cell.

Be ware: In the same cell and not in the same worldspace.

Posted
  On 7/30/2022 at 5:11 PM, maxarturo said:

 

NavMesh plays no role here.

I personally have use the function in question, and almost all the 'translate' functions' on an exterior cell, and it works as long as both the translated object and the player are in the same cell.

Be ware: In the same cell and not in the same worldspace.

Ok thanks

Did you do It in a new worldspace or inside Skyrim?

As i wrote, all that i did was in the same cell... the player must active a trigger that is litteraly over the boat and the coordinates to reach in my test are close the boat... in plus i can see in the CK if all is listed in the same cell and it's so

Posted
"Did you do It in a new worldspace or inside Skyrim?"

Both.


I don't know what else to say about your issue or pinpoint the solution without looking myself at the whole set up myself.
Posted
Maybe your coordinates are the problem, try it with the function 'TranslateToRef()' as suggested by Sphered.

Place an xMarker as your destination and translate the boat there.

Posted

Game.GetPlayer().SetPosition(PX,PY,PZ)

 

If you appear at the place you expect, then you know you have good coords. If you dont, then you know you need to rework

Posted (edited)
  On 7/30/2022 at 9:03 PM, Sphered said:

Game.GetPlayer().SetPosition(PX,PY,PZ)

 

If you appear at the place you expect, then you know you have good coords. If you dont, then you know you need to rework

Well

I did the test with the Game.Getplayer and the SetPosition worked, so I also tested with the boat.

if i use the SetPosition it works

  Reveal hidden contents

 

if i use the TranslateTo to the same coordinates it dsnt work

  Reveal hidden contents

 

Edited by Tiziano74
Posted
  On 7/30/2022 at 6:37 PM, maxarturo said:

 

Maybe your coordinates are the problem, try it with the function 'TranslateToRef()' as suggested by Sphered.
Place an xMarker as your destination and translate the boat there.

 

I have already tried this solution too ... but no movement

  • Recently Browsing   0 members

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