Nymra Posted May 17, 2022 Posted May 17, 2022 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? Or will the check IsHostileToActor suffice?
Fotogen Posted May 17, 2022 Posted May 17, 2022 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.
Nymra Posted May 17, 2022 Author Posted May 17, 2022 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..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.