Aller au contenu

Photo

NPC fight against each other


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
mihlena

mihlena
  • Members
  • 141 messages
I want  that two NPC fight against each other, during the PC can watch them. I try it with SetGroupHostility, but with that they make only one hit,  then they stand again peacefully side by side. Both are neutral and combatant. and immortal (because they should not die in this fight.)

#2
Proleric

Proleric
  • Members
  • 2 350 messages
In the toolset_groups 2DA, define two new group numbers.

On the creature templates, change _Neutral to one of the opposing groups. Pass the group numbers to SetGroupHostility.

Setting the creatures to Plot prevents injury, thereby ensuring that combat continues until you tell them to stop.

#3
Nattfodd

Nattfodd
  • Members
  • 321 messages
For me worked this code:
SetGroupId(oNPC1, 600);
SetGroupId(oNPC2, 601);
SetGroupHostility(600, 601, TRUE);
UT_CombatStart(oNPC1, oNPC2, TRUE);

Modifié par Nattfodd, 16 janvier 2011 - 07:58 .


#4
mihlena

mihlena
  • Members
  • 141 messages
@Proleric1 : Thank you, this works!