trepleen Posted March 25, 2015 Posted March 25, 2015 I found out what the problem was. Wet & Cold, the mod that adds backpacks, headgear, etc, was causing my custom companion I'm working on to break. The bug occured when it was raining in game real hard. That is why my package was being overridden. I wonder how I can get wet and cold to not affect this new companion I'm working on. Old The second room in the sleeping giant inn, the one with the dresser. There is a chair inside, next to a round table. What is the best package template to ensure an NPC always sits down on the chair I specify? I tried making a SitTarget package and selecting the chair, but for some reason it doesn't always work right. Sometimes the package just doesn't work and defaults to a sandbox of wandering around even though I have no sandbox package anywhere on the NPC. I need some kind of default package that will force an NPC to always sit on that chair. I need this package to never fail. Am I supposed to setup a navmesh? Is another NPC trying to sit on this chair?
Carabosse Posted March 25, 2015 Posted March 25, 2015 SitTarget *should* work. You can use a moveto command on the actor, when used with a furniture object it forces the actor to use the furniture animation idle. You could also try adding a specific idle to the package. To stop other actors sandboxing into the furniture maybe add the blockactivation flag to the furniture before you move your actor to it.
trepleen Posted March 25, 2015 Author Posted March 25, 2015 Okay, here is what I learned. For a default sitting package do this: 1. create new package 2. select SitTarget package 3. select the chair you want your npc to always sit on. (NOTE: if you activate this package from another city, the NPC will literally run from that city all the way to this chair to sit down, which is what we want). 4. Make sure you select the chair and choose "ignore sandbox", I think that is what was causing problems, I think.. I HOPE.... To stop other actors sandboxing into the furniture maybe add the blockactivation flag to the furniture before you move your actor to it. That must've been it, I'm glad we're on the same page. I think "ignore sandbox" on the chair should have the same effect as blocking its activation. If ignore sandbox doesn't work, I'll implement your block activation method or temporarily assign ownership of the chair to my NPC who needs to sit on that chair. Thanks!
trepleen Posted March 25, 2015 Author Posted March 25, 2015 Turns out the problem was with wet and cold's go home feature that makes npc's go home during rain or blizzard. I have to find some way to exclude my custom companion from being affected by wet & cold. An easy easy way.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.