Show / Hide Table of Contents

Class MobStateActionsComponent

Used for specifying actions that should be automatically added/removed on mob state transitions

Inheritance
System.Object
MobStateActionsComponent
Namespace: Content.Shared.Mobs.Components
Assembly: Content.Shared.dll
Syntax
public sealed class MobStateActionsComponent : Component
Remarks

Mostly for crit-specific actions.

Fields

| Improve this Doc View Source

Actions

Specifies a list of actions that should be available if a mob is in a given state.

Declaration
public Dictionary<MobState, List<string>> Actions
Field Value
Type Description
Dictionary<MobState, List<System.String>>
Examples

actions: Critical:

  • ActionCritSuccumb Alive:
  • ActionAnimalLayEgg
| Improve this Doc View Source

GrantedActions

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