CarryandDrop Package: Wood Won't Disappear

Post » Tue Nov 20, 2012 6:46 am

Hey guys, um, I have an NPC carrying wood from Point A to Point B from 7am to 4pm. When 4pm hits he starts heading to his next destination because of his package changing from CarryAndDropItem to SitTarget.

My problem is that, if he was carrying wood to get dropped off, once the SitTarget package kicks in and he stops at his new destination, when he sits down the wood he was carrying is STILL in his hands! He is literally sitting there with chunks of wood attached to his hands.

I took a peek at Faendal's packages (mostly the CarryWood packages) and notices he has, under the Begin/End/Change tab, Begin is set to:

; ; debug.trace(self + " OnBegin")ObjectReference meRef = akActor as ObjectReference(meRef as CarryActorScript).ChangeCarryState(true)

his End is empty, and his Change is:

; ; debug.trace(self + " OnChange")ObjectReference meRef = akActor as ObjectReference(meRef as CarryActorScript).ChangeCarryState(false)


SO I copied those and placed them under MY CarryWood package's Begin/End/Change tab. Except nothing happened. Everything is pretty much copied from Faendal, yet when the NPC sits down, he's still holding blocks of wood.

Any chance you guys know how to make the wood disappear once he stops the CarryWood package?


ADDENDUM!: I tried flagging the CarryAndDropItem package as "Must Complete" but that makes things worse: instead of dropping the wood off and, with empty hands, going to sit down, he just waltzes right back to the pile of wood and continues carrying wood back and forth...UNTIL I use the wait option for 1 hour. Then he magically teleports to the SitTarget location
User avatar
lydia nekongo
 
Posts: 3403
Joined: Wed Jul 19, 2006 1:04 pm

Post » Tue Nov 20, 2012 5:27 pm

You need to look at the CarryActorScript which is attached to Faendal. I think that is the script that "tells" Faendal when to drop the wood. You can probably just attach that same script to your actor and set the properties accordingly.
User avatar
jesse villaneda
 
Posts: 3359
Joined: Wed Aug 08, 2007 1:37 pm

Post » Tue Nov 20, 2012 10:44 am

I had a similar problem when my maid went from serving soup to sweeping. Sometimes the soup spoon and pot stayed in her hand as she swept. A short idle between fixed it.
User avatar
Alada Vaginah
 
Posts: 3368
Joined: Sun Jun 25, 2006 8:31 pm

Post » Tue Nov 20, 2012 12:53 pm

Oh jeez, that simple? Thanks guys. I feel a bit dumb now ^^;
User avatar
Marcus Jordan
 
Posts: 3474
Joined: Fri Jun 29, 2007 1:16 am


Return to V - Skyrim