DetachChildAction - acrimi/Raven GitHub Wiki
Extends ChildAction
DetachChildAction
is an implementation of ChildAction that detaches a child from the triggering entity. The child entity's id will be removed from the parent's TransformComponent's chilIds
list, and the child's TransformComponent will have its parent
property cleared.
The following parameters can be used to configure the action's behavior:
Key | Type | Description |
---|---|---|
type* | string | The type of the child entity that should be targeted by the action |
tag* | string | The tag of the child entity that should be targeted by the action |
linkedBy* | string | The name of a component that implements ChildLinkedComponent. The target child will be determined by the value of the component's childId property, optionally filtered against type and tag if present. |
* from ChildAction
Example:
"eventName": {
"action": "DetachChildAction",
"type": "fireball",
"tag": "magicSpawn",
"linkedBy": "CarryComponent"
}