View Full Version : Another Scripting question
10-15-2005, 11:43 PM
How would I go about using a script to cause a NPC of Faction 2 attack another NPC of faction 2. I have tried a few things but they don't work.
10-16-2005, 12:27 AM
Change their factions to prey and predator:
Depending on what you want to do, you may also use the SetMinOneHP function .
10-16-2005, 10:00 AM
I put this in the OnDialog script on a Younge Rancor in a custom module because I wanted it to just attack another object when I clicked on it yet when I do it simply stands there and I can't talk to it anymore. Not that it has a conversation.
10-18-2005, 11:59 AM
object oNPC1= GetObjectByTag("insert_object_tag");
object oNPC2= GetObjectByTag("insert_object_tag");
//these 2 lines will make them immortal and they will fight forever - remove them if you don't want this.
DelayCommand(1.0, AssignCommand(oNPC1, ActionAttack(oNPC2));
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.