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 SourceHostiles
Collection of entities that this NPC will attack, regardless of faction.
Declaration
public HashSet<EntityUid> Hostiles
Field Value
Type | Description |
---|---|
HashSet<EntityUid> |
Ignored
Collection of entities that this NPC will refuse to attack
Declaration
public HashSet<EntityUid> Ignored
Field Value
Type | Description |
---|---|
HashSet<EntityUid> |