Show / Hide Table of Contents

Class GenericAntagComponent

Added to a mob to make it a generic antagonist where all its objectives are fixed. This is unlike say traitor where it gets objectives picked randomly using difficulty.

Inheritance
System.Object
GenericAntagComponent
Namespace: Content.Server.GenericAntag
Assembly: Content.Server.dll
Syntax
public sealed class GenericAntagComponent : Component
Remarks

A GenericAntag is not necessarily an antagonist, that depends on the roles you do or do not add after.

Fields

| Improve this Doc View Source

Rule

Gamerule to start when a mind is added. This must have GenericAntagRuleComponent or it will not work.

Declaration
public EntProtoId Rule
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

RuleEntity

The rule that's been spawned. Used to prevent spawning multiple rules.

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