DarthStoney Posted June 13, 2007 Share Posted June 13, 2007 I was wondering what would a simple script be to turn the person you are talking to and the ones around that him hostile at the end of a conv? Link to comment Share on other sites More sharing options...
swfan28 Posted June 13, 2007 Share Posted June 13, 2007 Originally Posted by DSTONEY642000 I was wondering what would a simple script be to turn the person you are talking to and the ones around that him hostile at the end of a conv? This should do it: #include "k_inc_generic" void main() { object oNPC1 = GetObjectByTag("NPC1tag"); object oNPC2 = GetObjectByTag("NPC2tag"); object oPlayer = GetFirstPC(); ChangeToStandardFaction(oNPC1, STANDARD_FACTION_HOSTILE_1); ChangeToStandardFaction(oNPC2, STANDARD_FACTION_HOSTILE_1); AssignCommand(oNPC1, GN_DetermineCombatRound(oPlayer)); AssignCommand(oNPC2, GN_DetermineCombatRound(oPlayer)); } Just repeat the functions for each NPC you want to turn hostile. Link to comment Share on other sites More sharing options...
DarthStoney Posted June 13, 2007 Author Share Posted June 13, 2007 That should do it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.