Jump to content

Is there a faction that all NPC friendly to the PC share?


Nymra

Recommended Posts

Posted

With this I mean all guards, townspeople, farmers, travellers and the friendly tame animals...

 

Or is there a good and manageable list of required factions to catch all those guys reliably? :P


Or will the check

IsHostileToActor

suffice? 

Posted

There is no such faction.

 

IsHostileToActor is a good check. It is not 100% perfect. More like 99%. One simple reason is, that NPCs can move. At any moment, new "bad" NPC could come close enough and become hostile.

 

A good way to get all hostile NPCs:

- use IsHostileToActor to catch as many bad ones as you can. Like have a quest with lots of Aliases that have "IsHostileActor" as condition

- on top of that, if PC gets hit(OnHit event), attacker is also bad actor.

 

 

Posted
7 minutes ago, Fotogen said:

There is no such faction.

 

IsHostileToActor is a good check. It is not 100% perfect. More like 99%. One simple reason is, that NPCs can move. At any moment, new "bad" NPC could come close enough and become hostile.

 

A good way to get all hostile NPCs:

- use IsHostileToActor to catch as many bad ones as you can. Like have a quest with lots of Aliases that have "IsHostileActor" as condition

- on top of that, if PC gets hit(OnHit event), attacker is also bad actor.

 

 

 

perfect thx.

the second layer of detection is already in place, and 99% for the first one is sufficient in that case, nice. makes some things really easier.. 

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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