The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> how to "Face(X)" the PC, if I do not know where he should look at
jastey
post May 21 2005, 12:08 AM
Post #1





Forum Member
Posts: 1366
Joined: 22-August 04
From: Germany




Hi,
I have the following problem: If an NPC initiates dialogue with the PC, she will turn to him after the talk is finished. If I start a cutscene out of this dialogue, where the NPC cures her wounds for example while saying some nice things, he is doing this while she is turning her back on him - if he approached from the wrong side for the talk.
For coding I neither know in which area this talk appears nor where NPC and PC are facing at that moment.

Question: Is it possible to do "MoveToPoint" and "Face" in a way relative to the PC's position? If yes, how would it be coded?

Does anyone have another idea as to how this problem could be solved?

(It really looks stupid if the NPC is talking to the PC's back...)

Thanks!
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Rabain
post May 21 2005, 12:34 PM
Post #2


GOD


Retired team member
Posts: 1728
Joined: 14-July 04
From: Ireland




Apart from FaceObject (which is a lot better than just Face) my point was that if you have a character in a cutscene there is never a stage when you have no control. As the author of the cutscene you can create characters wherever you wish and have them movetopoint, face etc any place or direction you wish.

In what circumstance would you not know from which direction someone would come? Unless you were using CreateCreatureOffscreen (or whatever the correct format of this command is). However you would still be able to control where this creature moves to and which way they face, no?

Anyway, yes FaceObject() is so much better. smile.gif
Go to the top of the page
 
Quote Post

Posts in this topic
jastey   how to "Face(X)" the PC   May 21 2005, 12:08 AM
Rabain   NULL   May 21 2005, 12:17 AM
jastey   NULL   May 21 2005, 12:43 AM
devSin   NULL   May 21 2005, 03:52 AM
jastey   NULL   May 21 2005, 08:07 AM
Rabain   NULL   May 21 2005, 12:34 PM
jastey   NULL   May 21 2005, 12:50 PM
jastey   FaceObject is perfect in that case. :)Unfortunatel...   Feb 27 2008, 08:33 PM
devSin   If you don't know where the PC is going to be,...   Feb 27 2008, 10:48 PM
jastey   That's a good idea, thank you! If you happ...   Feb 28 2008, 07:10 AM
kulyok   FaceObject would be the solution, but another one ...   Feb 28 2008, 07:28 AM
jastey   If you can transfer, or even spawn the NPCs, then ...   Feb 28 2008, 05:53 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 13th May 2026 - 12:54 AM