Both (Bi-Entity Action Type)
Runs an entity action on both the actor and the target, first on the actor and then on the target. It is the action counterpart of the apoli:both condition, and a shorter way to write apoli:actor_action and apoli:target_action inside an apoli:and.
Type ID: apoli:both
Fields
| Field | Type | Default | Description |
|---|---|---|---|
action | Entity Action Type | required | The entity action to run on the actor and on the target. |
Examples
"bientity_action": {
"type": "apoli:both",
"action": {
"type": "apoli:set_on_fire",
"duration": 5
}
}This sets both entities on fire for 5 seconds.
{
"type": "apoli:action_on_hit",
"bientity_action": {
"type": "apoli:both",
"action": {
"type": "apoli:add_velocity",
"y": 0.6,
"space": "world"
}
}
}A hit that launches the attacker and the victim alike.