Hi!
I want to make npc who will attack another npc by script. Somebody can tell me how it should look like?
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);
}
Thanks. I didnt know about this prey/predator thing ;d
Is one of the people a party member? If so you will need to change back to his/her original faction.
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.
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