PDA

View Full Version : [k1] making a npc sit on a chair?


Canderis
08-06-2008, 03:56 PM
How can you make a npc sit on a chair?

nine.roses
08-06-2008, 04:35 PM
Ask him to sit down.

Sorry, couldn't resist. :D

It's likely a scripted animation on a loop. Or somesuch. To be frank, I know very little about animations...

Canderis
08-06-2008, 04:45 PM
same here thats why im asking.

Darth InSidious
08-06-2008, 05:16 PM
Almost certainly it's a looped animation. You could try adding a script to the OnHeartbeat slot of the .utc file, something like:


void main()
{
object oNPC = GetObjectByTag("object_tag");

AssignCommand(oNPC, PlayAnimation(ANIMATION_LOOPING_SIT_CHAIR, 1.0, -1.0));
}