Holty1-5 Posted April 3, 2010 Share Posted April 3, 2010 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 Link to comment Share on other sites More sharing options...
Hope Estheim Posted April 3, 2010 Share Posted April 3, 2010 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 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 More sharing options...
Holty1-5 Posted April 3, 2010 Author Share Posted April 3, 2010 Thank You. il use your script as a Base for my own one Link to comment Share on other sites More sharing options...
Hope Estheim Posted April 3, 2010 Share Posted April 3, 2010 Hahaha... okay and no problem ^^ (btw it was a Kotor Tool generated script xD so it's not my script per say ) Link to comment Share on other sites More sharing options...
Holty1-5 Posted April 3, 2010 Author Share Posted April 3, 2010 (btw it was a Kotor Tool generated script xD so it's not my script per say ) Lol But thanks anyway Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.