Jump to content

Home

Multiple Faction Change Script [Help K1]


Holty1-5

Recommended Posts

Hey Guys im Making a Mod for K1 and im in need of a Bit of Scripting Help....again

 

I need a Script that Changes a Couple of NPC's faction to Hostile

 

For a Example lets say i have 3 NPC'S

Tags: 1,2 and 3

what would be the script

 

Or if they all have the same Tag what is the script???

 

Help Plz

 

Thanks ;P

Link to comment
Share on other sites

Hey Guys im Making a Mod for K1 and im in need of a Bit of Scripting Help....again

 

I need a Script that Changes a Couple of NPC's faction to Hostile

 

For a Example lets say i have 3 NPC'S

Tags: 1,2 and 3

what would be the script

 

Or if they all have the same Tag what is the script???

 

Help Plz

 

Thanks ;P

 

Here's one type of code ;) Just change the "___" to whatever your peoples tags are. (that's a script from my own mod lol)

 

void main() 
{ 
object oNPC=GetObjectByTag("veshanii"); 
ChangeToStandardFaction(oNPC, 1);  
object oThug1 = GetObjectByTag("veshaniiguard"); 
object oThug2 = GetObjectByTag("veshaniiguard2"); 
ChangeToStandardFaction(oThug1, 1); 
ChangeToStandardFaction(oThug2, 1);
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...