Jump to content

Sit vs activate vs snapintointerraction


SAC020

Recommended Posts

I am working on a mod which requires NPCs to sit still in (a sequence of) furnitures, which have some animations associated. I use a magic effect which fires a script to spawn the furniture and then to direct the NPC to sit (snapintointerraction) into it.

 

The problem is that many times the NPC enters the furniture, sits for a couple of seconds, then exits and continues its sandbox. It's not a combat situation, it's just idle settler sandbox.

 

- if I place the furniture (via console) and then direct the NPC (console setcommandstate 1) to sit in the furniture, it works great, no interruptions, that is the desired outcome, but I cannot replicate this behavior by script

 

- if I place the furniture by script and then I script the NPC to "activate" the furniture, it doesn't seem to do anything, although the debug returns "true"

 

- if I place the furniture by script and the script the NPC to "snapintointerraction", it sits in the furniture for a second but then breaks animation and sandboxes away

 

- if I script the NPC unconscious and then snapintointerraction, then it _seems_ to stay in the furniture, but with eyes closed

 

I need to test more, but I don't understand the difference between "sit", "activate" and "snapintointerraction". Is there another "sit" command available for scripting?

 

Thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

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