Jump to content

Help with Creation Kit triggers


Recommended Posts

Posted

Hi everyone, 

 

I’m relatively new to using the Creation Kit and I’ve learned the basics like creating a space, placing it in the world, lighting, navmesh, doors/portals, interactive furniture, etc. I’ve been able to create a custom player home and have had that working well in the game; with NPCs that I designated to live in the home pathing well and sandboxing with the items in it. Now I’d like to learn how to set triggers for specific actions in specific locations in the home. My goal is to have two NPCs engage in a sex scene if they enter a specific area within the home. I’ve searched around a bit for a guide, but I haven’t been able to find anything like that. Is there anyone who can point me in the right direction? 
 

Thanks in advance.

Posted

Here's a tutorial on triggers. Just place special boxes from toolbar in the world and attach scripts to them.
 

DefaultOnEnterTrigger
Scriptname YourScriptName extends ObjectReference  
Event OnTriggerEnter(ObjectReference akTriggerRef)

        if akTriggerRef == ONE
actor[] sexActors = new actor[2]
sexActors[0] = ONE
sexActors[1] = TWO
sslBaseAnimation[] anims
SexLab.StartSex(sexActors, anims)
        endif
EndEvent

SexLabFramework property SexLab auto

Actor Property ONE  Auto 

Actor Property TWO  Auto 

But the script will be activated again and again if the NPCs are still in the box area. So it's worth disabling it for a while or strategically placing it in the world.

Posted
7 hours ago, DSHV said:

Here's a tutorial on triggers. Just place special boxes from toolbar in the world and attach scripts to them.
 

DefaultOnEnterTrigger
Scriptname YourScriptName extends ObjectReference  
Event OnTriggerEnter(ObjectReference akTriggerRef)

        if akTriggerRef == ONE
actor[] sexActors = new actor[2]
sexActors[0] = ONE
sexActors[1] = TWO
sslBaseAnimation[] anims
SexLab.StartSex(sexActors, anims)
        endif
EndEvent

SexLabFramework property SexLab auto

Actor Property ONE  Auto 

Actor Property TWO  Auto 

But the script will be activated again and again if the NPCs are still in the box area. So it's worth disabling it for a while or strategically placing it in the world.

 

Thanks. I'm going to try this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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