Jump to content

need help with script to put npc into zaz furniture


KappaLima

Recommended Posts

Posted

Hello guys, does anyone here know how to use script to put a NPC into a zaz furniture?

I am trying to convert naked dungeon to be follower friendly ( follower tied to a zaz furniture after being violated by aggressors like the player.)

So far the sex scene is done. But I can't get the follower to use bondage furniture correctly.

 

I have tried the method like ZAP helper (using quest alias and AI package.)

Which did put the follower into a furniture I spawned by script.

But the follower lost its AI behavior ( won't move or react to hostiles ) after released from the alias.

 

Please share some advice.

Posted
54 minutes ago, KappaLima said:

Hello guys, does anyone here know how to use script to put a NPC into a zaz furniture?

I am trying to convert naked dungeon to be follower friendly ( follower tied to a zaz furniture after being violated by aggressors like the player.)

So far the sex scene is done. But I can't get the follower to use bondage furniture correctly.

 

I have tried the method like ZAP helper (using quest alias and AI package.)

Which did put the follower into a furniture I spawned by script.

But the follower lost its AI behavior ( won't move or react to hostiles ) after released from the alias.

 

Please share some advice.

 

Using a quest alias and AI package seems the right way to get them into the device.  What I did (in SkyrimChainBeasts-UseDeviceMultipleScript-PassToNext) to release them is:

- have them activate the device; as victim is already in device this will release them from it.

- clear the alias, removing the custom AI.  They should now be acting normally again; removing the custom AI package would normally have them reevaluate their AI. You could call EvaluatePackage() to make sure.

 

 Actor victim = victimalias.getRef() as actor
 devicealias.getRef().activate( victim, true )    ; get out of device.
 victimalias.clear()                                          ; current victim alias, removing AI package.  

 

 victim.EvaluatePackage()                              ; should not be needed.

 

Posted
9 hours ago, MTB said:

 

Using a quest alias and AI package seems the right way to get them into the device.  What I did (in SkyrimChainBeasts-UseDeviceMultipleScript-PassToNext) to release them is:

- have them activate the device; as victim is already in device this will release them from it.

- clear the alias, removing the custom AI.  They should now be acting normally again; removing the custom AI package would normally have them reevaluate their AI. You could call EvaluatePackage() to make sure.

 

 Actor victim = victimalias.getRef() as actor
 devicealias.getRef().activate( victim, true )    ; get out of device.
 victimalias.clear()                                          ; current victim alias, removing AI package.  

 

 victim.EvaluatePackage()                              ; should not be needed.

 

Thank you for the codes. Unfortunately, I tried it but this does not solve the issue. Follower still lost behavior after clearing the alias.

Posted
11 hours ago, MTB said:

 

Using a quest alias and AI package seems the right way to get them into the device.  What I did (in SkyrimChainBeasts-UseDeviceMultipleScript-PassToNext) to release them is:

- have them activate the device; as victim is already in device this will release them from it.

- clear the alias, removing the custom AI.  They should now be acting normally again; removing the custom AI package would normally have them reevaluate their AI. You could call EvaluatePackage() to make sure.

 

 Actor victim = victimalias.getRef() as actor
 devicealias.getRef().activate( victim, true )    ; get out of device.
 victimalias.clear()                                          ; current victim alias, removing AI package.  

 

 victim.EvaluatePackage()                              ; should not be needed.

 

Update: This works after I created a new quest to keep the alias and the package. I had put them in the old naked dungeons captive quest. Don't know what makes it break follower's AI.

Posted
1 hour ago, Heroine of the Night said:

you can look in this mod,  system works good.

 

Hey Thanks!

This looks very alike what I am trying to do.

Archived

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

  • Recently Browsing   0 members

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