Jump to content

Reload Objects in Space


Recommended Posts

Hello,

is it possible to reload the objects (planets, moons etc.) in space? I would prefer a Papyrus function. If I fly too fast to planets (Mod), the 3d objects of the planets or moons are not loaded. At the moment I make do with save and reload. But that is not a solution that I like.  I have already tested several console commandos, none of them worked.

Link to comment
Share on other sites

For those who are interested, I have now found the solution:

Function ReloadSpaceObjects() Global
	Actor playerRef = Game.GetPlayer()
	ObjectReference playerCurrentShip = playerRef.GetSpaceship() as ObjectReference
  	Float x = playerCurrentShip.GetPositionX()
  	Float y = playerCurrentShip.GetPositionY()
  	Float z = playerCurrentShip.GetPositionZ()
  	playerCurrentShip.SetPosition(x, y, z)
EndFunction
 

 

Link to comment
Share on other sites

Or Game.GetPlayer().GetCurrentShipRef().MoveTo(Game.GetPlayer().GetCurrentShipRef()) will trigger a reload.

Link to comment
Share on other sites

 

On 7/4/2024 at 9:40 AM, SKKmods said:

Or Game.GetPlayer().GetCurrentShipRef().MoveTo(Game.GetPlayer().GetCurrentShipRef()) will trigger a reload.

hmm, strange. That immediately generates a CTD for me.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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