Posts: 3,860
Thanks: 8548 in 67 Posts
28 Achievements
Quote: Originally posted by FloTheory
Hi all!
I'm making a mod to add the rocking chair nap interaction to living chairs. It works fine, except for one thing I don't understand. As you can see on the picture, when performing the nap animation on a living chair, sims suddenly turn backwards (why??).
They start and end the interaction correctly though o_0.
If anyone has a hint
|
So in the middle of the interaction, it seems that they don't have a slot to snap to (or wel,, you're getting the slot, but you're not actually 'snapping' them to it
In this case it's a bit more complicated as these 'slots' are actually the IK targets. But EA got you covered :p
Now, first off, you do need to make sure you copy the SuffixX stuff from EA's Sit_Template jazz script. So, that looks something like this:
Code:
Play "a2o_firePit_warmHandsLoop1_x" for "x"
{
Actor "diningChair" Suffix "sitTemplateSuffix"
}
In your case, diningChair would become chairliving
Then, it's just a matter of adding:
Code:
base.SetParameter("SuffixX", seat.IKSuffix);
For reference as to how and why i'd suggest checking out 'SeatedChat'
My knowledge on seats isn't that amazing, except for having sims go to it and animate (which I actually did without the IK suffix stuff, so you could also just load in EA's sitting animation, like the idle sitting, and see if your animation is just rotated differently?)
Also! Small tip, I made this same mistake with the Sewing table, but anything 'ExitReasons' I'd add in the 'doLoop' (or rather, NapLoop in your case
). Else if the code runs and the user eventually cancels the interaction, it won't do it
or the animation will still loop while the sim isn't considering using it anymore.