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 SourceActions
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
GrantedActions
Declaration
public List<EntityUid> GrantedActions
Field Value
Type | Description |
---|---|
List<EntityUid> |