Aller au contenu

Photo

SOLVED: Ambient Behavior - sitting_chair - how do you assign a chair?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
I have an NPC that I have doing Ambient behavior # 38 - sitting chair. That makes him sit in the air. How do I tell him what object to sit on (I have a bench I want him to sit on)?

Modifié par PavelNovotny, 02 mars 2010 - 01:37 .


#2
BioSpirit

BioSpirit
  • Members
  • 261 messages
You need to disable physics. This can be done by seting the PHYSICS_DISABLED variable to 1 or you can use SetPhysicsController() scripting function.

#3
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
When I do that will he just pick the nearest chair like object to sit on?

#4
BioSpirit

BioSpirit
  • Members
  • 261 messages
No, he will sit in the location where he stands in the area editor. There is no scripting functions to tell to sit on a specific object. I have never tried to make a NPC to sit on a placeable. But it do work when siting on objects placed in level editor.

Image IPB

Modifié par BioSpirit, 28 février 2010 - 08:48 .


#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
If you want the character to sit in a placeable chair, one way is to use anim pattern 62 (interact_sit_chair). This uses the nearest placeable to the character. Alternately, you can just do as described above.


#6
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
Thanks for the help - I ended up using anim pattern #62.