Jump to content

Is there a way to reposition a scene the player is not involved in?


Guest GuyWhoAbruptlyDisappeared

Recommended Posts

Guest GuyWhoAbruptlyDisappeared
Posted

Hi,

 

What the title says. I tried pressing E on the actors and it just starts dialogue with them.

 

Is there even a way at all? If not, I'll make a set of spells or something to do that.

Posted

There's two functions on a thread you can call to position the actors wherever you want.

function CenterOnObject(ObjectReference CenterOn, bool resync = true)

function CenterOnCoords(float LocX = 0.0, float LocY = 0.0, float LocZ = 0.0, float RotX = 0.0, float RotY = 0.0, float RotZ = 0.0, bool resync = true)

One centers the actors on a certain object or actor, and the other on specified coordinates. The resync flag at the end will tell it whether the actors should immediately re position there or not.

Guest GuyWhoAbruptlyDisappeared
Posted

There's two functions on a thread you can call to position the actors wherever you want.

function CenterOnObject(ObjectReference CenterOn, bool resync = true)

function CenterOnCoords(float LocX = 0.0, float LocY = 0.0, float LocZ = 0.0, float RotX = 0.0, float RotY = 0.0, float RotZ = 0.0, bool resync = true)

One centers the actors on a certain object or actor, and the other on specified coordinates. The resync flag at the end will tell it whether the actors should immediately re position there or not.

 

I don't want to change the animation center, though. I want to change the position of one actor relative to the other.

Posted

You can manuallly position them by calculating your own coords to use for setposition() and setrotation(), look at sslActorAlias for an example of that, just replace the animation offsets that function uses with ones of your own. Anytime the player changed their prosition with a hotkey or the animation changed stages however, they would would reposition back to sexlab's default, so you would have to frequently reposition them to keep them at your custom location.

 

For a more "reliable" method you could override a players customized offsets to place to position where you want with sslBaseAnimation.SetAdjustment() and then sslBaseAnimation.RestoreOffsets() after your done to return the animation to it's default alignment, that way SexLab natively places the actor on the offsets you want.

 

However I would absolutely 100% discourage overriding the players customized adjustment like that many might not care, but there will be people who do care that you deleted their adjustments.

 

There is really no good safe API method of doing it, mainly because I can think of zero good reason to want to do it, so I never implemented one. If it's to essentially repurpose an animation to look like a different sort of animation, there are better ways of doing that than overriding the coordinates of an actor

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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