Passenger Action (Entity Action Type)

Executes an action on the passengers of the entity.

Executes an action on the passengers of the entity.

Type ID: apoli:passenger_action

!!! note

Not to be confused with Riding Action

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalIf specified, this action will be executed on the passenger entity.
bientity_actionBi-entity Action TypeoptionalIf specified, this action will be executed on either the ‘actor’ (the entity being ridden) or the ‘target’ (the passenger entity) or both.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the specified actions will only be executed if this condition is fulfilled by either the ‘actor’ (the entity being ridden) or the ‘target’ (the passenger entity) or both.
recursiveBooleanfalseIf set to true, the specified action(s) will be executed on all the passenger entities.

Examples

"entity_action": {
    "type": "apoli:passenger_action",
    "action": {
        "type": "apoli:heal",
        "amount": 2
    },
    "recursive": true
}

This example will heal all entities that are currently riding the entity that executed this entity action type.