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
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);
}
Thank You. il use your script as a Base for my own one ;P
Hahaha... okay and no problem ^^
(btw it was a Kotor Tool generated script xD so it's not my script per say :P )
(btw it was a Kotor Tool generated script xD so it's not my script per say :P )
Lol But thanks anyway ;P