Jump to content

Home

npc walk to pc and start convertion.


sekan

Recommended Posts

I have made a script that makes an npc walk to you and start and convertion

 

void main() {
 object oNPC=GetObjectByTag("jedim");
 location lMe=GetLocation(GetFirstPC());
   ActionDoCommand(SetCommandable(TRUE,oNPC));
 AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
 AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}

 

2 questions is there some errors in the script and where in the dialog shall i put the scirpt?

Link to comment
Share on other sites

There are no errors in the script.

 

You would not put this script in the dialog however since the script must fire first so that dialog can begin. You'll have to use some other event like a trigger, an opening door, entering an area, the ending of some other conversation, etc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...