Sitting Npc...levitating?

Post » Wed Jan 20, 2010 3:08 am

Hi all!

I′m having a stetic problem now...using sitting pants by Korana, the npc seem levitating instead of sitting:

http://img860.imageshack.us/i/captura7.jpg/

If it was a static object, I could use z parameter to put him nearer the couch, but, as an npc, I can′t do this. I tried pressing F key, but the collision only recognizes the "true" feet of the npc.

Any suggestions?
User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am

Post » Wed Jan 20, 2010 8:49 am

The bottom of the NPC's collision box is where it should be, for him to be placed on top of (but not clipping through) the sofa. It's a problem with the sitting pants; as you've found they don't actually change the collision at all. There are a few other things you can try, including sitting animations or forcing the NPC to a seated position, but none of them are foolproof.

A year or two ago I released a proof of concept with chairs anybody (PC or NPC) could sit in, and the technique I used (which I believe has been used in a few other mods) was to force their Z position through "SetPos Z [whatever]". If they are in the right X/Y, you can set a known Z each frame and keep them sitting. It's not a perfect solution, a bit awkward, but mostly functional.
User avatar
Darren
 
Posts: 3354
Joined: Wed Jun 06, 2007 2:33 pm

Post » Wed Jan 20, 2010 9:32 am

Thanks peachykeen! Finally I manually hand-placed him on the couch, but it seems like the engine is not very disposed to sitting Npc's, so I hope anybody tries to attack him :D

Even hand-placed at the cs, the npc still is levitating, so I will try with the setPos Z script.

Also, I′m experimenting other npc placing problems, like, if I place some npcs in a bar forming a group, they disperse at playing, and appear at other palces of the cell (wander pack has been deleted)...what's happenng?
User avatar
Josh Lozier
 
Posts: 3490
Joined: Tue Nov 27, 2007 5:20 pm


Return to III - Morrowind