Jump to content

Home

Switching issue


GeorgNihilus

Recommended Posts

Hi folks, I'm having a problem to switch back to the PC after starting a dialog with an NPC, as far as I've seen this happens by default but in my case the NPC continues facing the NPC party member who starts the dialog (Bastila, Carth or whoever) -even setting the listener field of the DLG editor-.

I need to switch back to the PC so the dialog focus on the PC again. I tried using the k_act_noswitch script provided by the game but it's not working ... here it is this default script:

 

//:: k_act_noswitch

/*

Stops the switch back

to the NPC focus after

a conversation if the

conversation was started

by a party NPC and not

the PC object.

*/

//:: Created By: Preston Watamaniuk

//:: Copyright © 2002 Bioware Corp.

 

#include "k_inc_debug"

 

void main()

{

CancelPostDialogCharacterSwitch();

}

 

I fired this script on the 1st branch of the mentioned dialog, not in all the dialog entries, it's doing nothing ... :mad: by the way I'm using an NPC soldier from RedHawke's Ord Mandell's mod (added Ord Mandell planet), which .dlg is packed in a .mod file of the /modules folder.

 

hopes this helps, to help me ... thanks on advance. :)

 

EDIT: problem solved, all I was needing was the SetPartyLeader(NPC_PLAYER) function to switch back to the PC to focus the dialog in him/her before starting to talk; I haven't seen the function when I posted first :roleyess:...

 

Note: this thread can be close for all that concerns me ... thanks anyway people :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...