Ravager Posted February 8, 2009 Share Posted February 8, 2009 Hi! I want to make npc who will attack another npc by script. Somebody can tell me how it should look like? Link to comment Share on other sites More sharing options...
Canderis Posted February 8, 2009 Share Posted February 8, 2009 You would use somthing like this: void main() { object oNPC1=GetObjectByTag("npc 1 here"); object oNPC2=GetObjectByTag("npc 2 here"); ChangeToStandardFaction(oNPC1, STANDARD_FACTION_PREY); ChangeToStandardFaction(oNPC2, STANDARD_FACTION_PREDATOR); } Link to comment Share on other sites More sharing options...
Ravager Posted February 8, 2009 Author Share Posted February 8, 2009 Thanks. I didnt know about this prey/predator thing ;d Link to comment Share on other sites More sharing options...
Canderis Posted February 8, 2009 Share Posted February 8, 2009 Is one of the people a party member? If so you will need to change back to his/her original faction. Link to comment Share on other sites More sharing options...
Ravager Posted February 10, 2009 Author Share Posted February 10, 2009 I dont want to make another topic so i am writing here. I want to fire conversation after NPC spawn. I have script but i dont know where can i put this. I tried to add this to OnEnter but it dont work. Link to comment Share on other sites More sharing options...
Star Admiral Posted February 10, 2009 Share Posted February 10, 2009 I believe that inside the utc for the NPC, there is a entry OnSpawn. You'll put your script name in that category. - Star Admiral Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.