Jump to content

Faction SetAlly attacking each other


SKKmods

Recommended Posts

I am having some problems with quest spawned LvlNPCs attacking each other even when their Quest Alias RefCollection attached factions are set to reciprocal Ally.

 

CK document states " Allies cannot attack each other under any circumstances", yeah, right.

 

Having run a stack of sims it looks like its lvlSynth and lvlProtectron that are attacking everyone else, but not each other. I cant see anything on the base actor that is different to other LvlNPCs.

 

Anyone know about robots ?

 

Link to comment
Share on other sites

It's actually unclear documentation rather than Robots.

 

Turns out that SetEnemy() and SetAlly() are not reciprocal so have to be run on both:

pThisFaction.SetAlly(pThatFaction, false, false) ;ally
pThatFaction.SetAlly(pThisFaction, false, false) ;ally
Edited by SKK50
Link to comment
Share on other sites

The ck documentation implies that setenemy and setally are rediprocal in a single function call. My observed behavior suggests that is not reliable unless a seperate call is made on both factions. Validated with 8x8x8 faction relations in combat simularion.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...