DeactivateComponentAction - acrimi/Raven GitHub Wiki

Extends ComponentAction

DeactivateComponentAction is an implementation of ComponentAction that deactivates one or more StatefulComponents. If any of the components specified either do not extend from StatefulComponent or are not currently attached to the entity, the action will have no effect for that component.

Configuration

The following parameters can be used to configure the action's behavior:

Key Type Description
components* string[] Array of all components to be processed by the action. Must be the full name of the component class.
component* string The full name of single component class to be processed by the action. Ignored if components is defined.

* from ComponentAction

Examples:

"eventName": {
  "action": "DeactivateComponentAction",
  "components": [
    "InvulnerabilityCompontn",
    "StunComponent"
  ]
}
"eventName": {
  "action": "DeactivateComponentAction",
  "component": "DeathComponent"
}
⚠️ **GitHub.com Fallback** ⚠️