Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

[k1] making a npc sit on a chair?

Page: 1 of 1
 Canderis
08-06-2008, 3:56 PM
#1
How can you make a npc sit on a chair?
 nine.roses
08-06-2008, 4:35 PM
#2
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, 4:45 PM
#3
same here thats why im asking.
 Darth InSidious
08-06-2008, 5:16 PM
#4
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));
}
Page: 1 of 1