Jump to content

Home

npc walk to pc and start convertion.


sekan

Recommended Posts

Posted

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?

Posted

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.

Posted

Thanks tk102 . Oppening door could work but what if the doors in the module are open? Is there som way to close them?

Archived

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

×
×
  • Create New...