Jump to content

Home

I need a script. Again.


HdVaderII

Recommended Posts

void main() {
   object oRunner = GetObjectByTag("Kreia");
   object oTarget = GetFirstPC();
   int bRun = TRUE;
   float fRange = 1.0;

   AssignCommand(oRunner, ClearAllActions());
   AssignCommand(oRunner, ActionForceMoveToObject(oTarget, bRun, fRange));
}

Replace the tag of oRunner with the tag of your NPC. The parameter fRange controls how close the character will run up to the PC. You can increase the value so the NPC stops further away.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...