Show / Hide Table of Contents

Class FactionExceptionComponent

Prevents an NPC from attacking ignored entities from enemy factions. Can be added to if pettable, see PettableFriendComponent.

Inheritance
System.Object
FactionExceptionComponent
Namespace: Content.Server.NPC.Components
Assembly: Content.Server.dll
Syntax
public sealed class FactionExceptionComponent : Component

Fields

| Improve this Doc View Source

Hostiles

Collection of entities that this NPC will attack, regardless of faction.

Declaration
public HashSet<EntityUid> Hostiles
Field Value
Type Description
HashSet<EntityUid>
| Improve this Doc View Source

Ignored

Collection of entities that this NPC will refuse to attack

Declaration
public HashSet<EntityUid> Ignored
Field Value
Type Description
HashSet<EntityUid>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾