Show / Hide Table of Contents

Class NPCRetaliationComponent

Entities with this component will retaliate against those who physically attack them. It has an optional "memory" specification wherein it will only attack those entities for a specified length of time.

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

Fields

| Improve this Doc View Source

AttackMemories

A dictionary that stores an entity and the time at which they will no longer be considered hostile.

Declaration
public Dictionary<EntityUid, TimeSpan> AttackMemories
Field Value
Type Description
Dictionary<EntityUid, TimeSpan>
| Improve this Doc View Source

AttackMemoryLength

How long after being attacked will an NPC continue to be aggressive to the attacker for.

Declaration
public TimeSpan? AttackMemoryLength
Field Value
Type Description
System.Nullable<TimeSpan>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾