Modifié par PavelNovotny, 02 mars 2010 - 01:37 .
SOLVED: Ambient Behavior - sitting_chair - how do you assign a chair?
Débuté par
PavelNovotny
, févr. 28 2010 06:46
#1
Posté 28 février 2010 - 06:46
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)?
#2
Posté 28 février 2010 - 08:00
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
Posté 28 février 2010 - 08:12
When I do that will he just pick the nearest chair like object to sit on?
#4
Posté 28 février 2010 - 08:36
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.
Modifié par BioSpirit, 28 février 2010 - 08:48 .
#5
Posté 01 mars 2010 - 05:42
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
Posté 02 mars 2010 - 01:37
Thanks for the help - I ended up using anim pattern #62.





Retour en haut






