lfnetwork.com mark read register faq members calendar

Thread: PC o party members facing
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-06-2007, 03:11 PM   #1
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 590
Current Game: Skyrim
Question PC o party members facing

Well people ... now I'm trying to determine where is the PC or a party member facing to, I wonder if there's a function to check the SetFacing() function value for the PC for example, or maybe the SetFacingPoint(Vector()) one ...

what I want to do is align the PC and a party member to look to the same direction -or the direction I want- without having to set them into a determined position ... are there such functions? or procedures?

thanks as usual ...
GeorgNihilus is offline   you may: quote & reply,
Old 08-06-2007, 03:16 PM   #2
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by GeorgNihilus
what I want to do is align the PC and a party member to look to the same direction -or the direction I want- without having to set them into a determined position ... are there such functions? or procedures?
I'm not sure I understand what you need to do. If you want to make two characters face in the same direction wouldn't it work to just use SetFacing() with the same angle specified for both of them?

stoffe is offline   you may: quote & reply,
Old 08-06-2007, 03:31 PM   #3
Alexander the Great
Junior Member
 
Alexander the Great's Avatar
 
Join Date: Jul 2007
Location: Sam's Town
Posts: 371
I think he means just the head, in which case I'm pretty sure is possible. I have no idea how, though.


"Education is what remains after one has forgotten everything he learned in school." - Albert Einstein

Alexander the Great is offline   you may: quote & reply,
Old 08-06-2007, 03:33 PM   #4
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 590
Current Game: Skyrim
Red face this is what i want...

Suppose I want to this dialog:

1) PC: -Hey Juhani, have you seen those Czerka thugs there?-
2) Juhani: -What? Where?-
3) PC: -Behind you, take a look ...-
4) Juhani: -Ah Ok I will take a look (she turns 180 degrees to look to her back i.e.)-
5) PC: -so, are you ready to pass through them?-
6) Juhani: -OK, let's do it ...-

AND I set camera 8 with camera angle 2 in the DLGEditor to see this scene as an animation -associated to a script of course- ... before retaking the dialog in line 5 ... in line 4 the PC 'should' be looking to the same direction of Juhani if possible ...

hope it helps ...
GeorgNihilus is offline   you may: quote & reply,
Old 08-06-2007, 03:41 PM   #5
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
You might also try setting the Listener field to be the Tag of one of the thugs so in essence Juhani would be speaking to the thug in 4).
tk102 is offline   you may: quote & reply,
Old 08-06-2007, 03:43 PM   #6
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by GeorgNihilus
1) PC: -Hey Juhani, have you seen those Czerka thugs there?-
3) PC: -Behind you, take a look ...-
4) Juhani: -Ah Ok I will take a look (she turns 180 degrees to look to her back i.e.)-
Well, if said Czerka Thug actually would be behind her, as indicated by the dialog, wouldn't it just be enough to make both Juhani and the PC face aforementioned thug? Like...
Code:
void main() {
    vector vFace = GetPosition(GetObjectByTag("CzerkaThug"));
    AssignCommand(GetObjectByTag("Juhani"), SetFacingPoint(vFace));
    AssignCommand(GetFirstPC(), SetFacingPoint(vFace));
}
...or am I still misunderstanding things? Sounds logical at least that if a character is requested to look at someone they'd look in their direction?

stoffe is offline   you may: quote & reply,
Old 08-06-2007, 06:12 PM   #7
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 590
Current Game: Skyrim
Post Well...

Alright guys I've not been sincere with you ... -I hope I'm not gonna be banned for this mmm...- I want a sexy mod with Juhani placed in front of me to dance to a male PC as required in a dialog; first she dances a little facing the PC and then she should turn to give him her back... (180) and dance to him that way for nn seconds before retaking the dialog ...

So the PC should be looking at her during the whole 'animated' scene ... which is gonna be triggered by a script ... BUT I want this to be triggered if possible in many planets not only in a specific spot (place); that's why I thought in that orientation stuff...

so that's it hope it helps ...
GeorgNihilus is offline   you may: quote & reply,
Old 08-06-2007, 06:47 PM   #8
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by GeorgNihilus
Juhani placed in front of me to dance to a male PC as required in a dialog; first she dances a little facing the PC and then she should turn to give him her back... (180) and dance to him that way for nn seconds before retaking the dialog ...
Well, the easiest way I can think of would simply be to make the spectator look at the dancer and then make the dancer look the same way as the spectator when she should turn around. For example:
Code:
void main() {
    object oDancer = GetObjectByTag("Juhani");
    object oDancee = GetFirstPC();
    
    // Step 1) Make them face each other
    AssignCommand(oDancee, SetFacingPoint(GetPosition(oDancer)));
    AssignCommand(oDancer, SetFacingPoint(GetPosition(oDancee)));

    // Step 2) Make Dancer look the other way 10 seconds later
    DelayCommand(10.0, AssignCommand(oDancee, SetFacingPoint(GetPosition(oDancer))));       
    DelayCommand(10.5,AssignCommand(oDancer, SetFacing(GetFacing(oDancee))));
}

stoffe is offline   you may: quote & reply,
Old 08-07-2007, 06:41 PM   #9
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 590
Current Game: Skyrim
Post OK!

Great. That was the kind of function I was looking for: GetPosition(), SetFacingPoint() and so ... thanks a lot Stoffe

Very helpful as usual ...
GeorgNihilus is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > PC o party members facing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:00 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.