Jump to content

Forcing a SL scene to happen in a specific spot via script?


Blaze69

Recommended Posts

Posted

As the title says, I'm wondering it if's possible to control the exact spot where a certain SL scene happens and force it to be a predetermined position.

 

Basically I've got my mod set up so a certain sex dialogue line can be accessed whenever the target character is close enough to a certain location (their camp), but I want the sex scenes themselves to only happen in a specific spot in the world regardless of where the NPC is when the conversation starts and the scene is triggered; in this case, inside said character's tent, both because it's one of the few flat areas around (to prevent characters clipping into uneven terrain during sex) and because the dialogue references the fact (i.e. "let's do it inside my tent").

 

From what I've gathered from the scripts, SL uses some kind of marker reference to choose where to play the scene, but the marker is placed at the player's feet on scene start (or one of the NPC's if the player isn't involved) and I haven't been able to manually force it to move to a certain spot or to use a pre-placed marker instead of dynamically spawning a new one on runtime.

 

Is there any way to make sure sex will always happen at the specific spot I want it to? Doesn't need to affect all scenes from all mods, I just want it to happen with the specific scenes triggered by my mod.

Posted

Yes, it is possible.

 

Place the object you like (can be also an invisible Marker.) Be sure to orient it as you like.

 

Then you can start SL with some code like that:

 

Actor[2] positions = new Actor[2]

position[0] = PlayerRef

position[1] = anotherActor

sslBaseAnimation[] anims = SexLab.getAnimationsByTag(2, "Oral,Vaginal")

SexLab.startSex(positions, anims, None, myRefMarker)

Posted
1 hour ago, CPU said:

<snip>

Didn't think to check the arguments in the StartSex function, but now that you mention it, yeah, it sounds exactly like what I'm looking for.

* * @param: CenterOn [OPTIONAL], if the ObjectReference is specified, then the animation will be centered on the specified object. It can be a marker, a furniture, or any other possible ObjectReference.

I'll probably just place a XMarkerHeading reference in the spot I want and set it up like that. Thanks for the help!

Archived

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

  • Recently Browsing   0 members

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