Jump to content

Home

Sitting NPC


Miltiades

Recommended Posts

Okay, I know this has been asked before, but apparently, I can't seem to get NPCs sitting to work properly.

 

I tried two different things: First I tried it with an NPC, and used the first script from this thread. The NPC sits, but not in the right direction. I've put in numerous different numbers as the vector, but it just doesn't work.

 

Then I tried it with a "sitting placeable", but instead of sitting, it's laying dead.

 

Any idea what's wrong?

Link to comment
Share on other sites

Try using SetFacing instead of SetFacingPoint. It only requires a single number as argument instead of a vector to have the NPC facing in a certain direction. For example,

AssignCommand(OBJECT_SELF, SetFacing(180.0));

will make the character look to the west. You can get the orientation value with the whereami armband.

Link to comment
Share on other sites

Yep, that does the job. Thanks. ;)

 

Edit: Hmm, they don't want to sit into the chairs. I'm using the Harbinger Command Deck module (151har) and tried to let the NPCs sit into the chairs in the briefing room. But instead of sitting in the chairs, they're sitting behind it.

 

I suspect this is because there's no walkmesh in that place... Which means there's no solution for it, I guess. Unless someone does have a solution...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...