Ravager Posted February 8, 2009 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?
Canderis Posted February 8, 2009 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); }
Ravager Posted February 8, 2009 Author Posted February 8, 2009 Thanks. I didnt know about this prey/predator thing ;d
Canderis Posted February 8, 2009 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.
Ravager Posted February 10, 2009 Author 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.
Star Admiral Posted February 10, 2009 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.