Aller au contenu

Photo

DM Client and NPC sitting?


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

#1
Xeneize

Xeneize
  • Members
  • 133 messages

I am sure this is pretty commonly known, but normally when you possess a NPC from DM side, you can't sit down on chairs, sofas, etc. That is why I am looking for a way to resolve it. One of the ideas is to make a DM wand that will grab a targeted NPC(or PC?) and make it sit on the targeted object.

 

Is that doable at all? If so, how would I go about doing it, and more importantly, how do I make the NPC(And PC?) sit down facing the right direction?

 

 

Any other ideas to resolve this would be welcome.



#2
Tchos

Tchos
  • Members
  • 5 042 messages

What does the script look like that you're using to sit?  I don't know anything about DM clients, but I know that the popular PC Tools emotes use functions that only work on the main PC.  I modified them to work on whatever character you're currently possessing (for party companions).  Might work the same for whatever you're using.



#3
Xeneize

Xeneize
  • Members
  • 133 messages

This is what I'm currently using:

Spoiler


#4
Tchos

Tchos
  • Members
  • 5 042 messages

Have you tried uncommenting the last block of code that handles DM possession situations?  It's currently disabled in that code you posted.



#5
Xeneize

Xeneize
  • Members
  • 133 messages

I tried removing the comment and making it a command but it does not appear to work. Whenever I try to sit with a possessed creature(Be it normal or full powers) he moves in, but gets stuck on its feet unable to move.



#6
Tchos

Tchos
  • Members
  • 5 042 messages

Silly question -- is the chair marked as walkable?



#7
Xeneize

Xeneize
  • Members
  • 133 messages

Yes, all of them are. They're placeables.



#8
Tchos

Tchos
  • Members
  • 5 042 messages

Yes, they would have to be placeables, since they need that script in the On Used slot, but normally placeables block off the walkmesh, so you have to mark them as walkable or else no one can sit in them if you bake the walkmesh.  Is it possible the walkmesh was baked before it was marked as walkable, such that the area under the chair is not walkable?  Can you check that?



#9
Xeneize

Xeneize
  • Members
  • 133 messages

Yup all baked. I think I know what the problem is now, I'll come back after a few more tests, thanks!



#10
Xeneize

Xeneize
  • Members
  • 133 messages

That didn't work out in the end. Is there a way I can add a section where a DM that is currently possessing a PC can click on a seat and sit the npc down?

 

I know in nwn1 DMs could easily sit down while possessing npcs anyway.



#11
Tchos

Tchos
  • Members
  • 5 042 messages

Your previous response "yup all baked" was too ambiguous to troubleshoot further.  I suggested that an affirmative response is cause for concern.



#12
Xeneize

Xeneize
  • Members
  • 133 messages

I checked everything that was said in this thread already; I'm unsure I understand what the message above me really means.



#13
Tchos

Tchos
  • Members
  • 5 042 messages

Can you show a screenshot of one of these chairs in the toolset, with the chair selected, and the properties window visible showing the "behaviour", "scripts", and "statistics" sections, as well as having the "surface mesh" and "baked" buttons in the toolbar activated?  (May require multiple screenshots to show all of the requested sections of the properties window.)