Skip to main content

Passenger Action (Entity Action Type)

Runs an action on the entities riding this entity.

Type ID: apoli:passenger_action

note

For the opposite direction, the entity this one is riding, see Riding Action.

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalRuns on each passenger.
bientity_actionBi-entity Action TypeoptionalRuns with the entity being ridden as the actor and the passenger as the target.
bientity_conditionBi-entity Condition TypeoptionalThe actions only run on a passenger when this passes, with the entity being ridden as the actor and the passenger as the target.
recursiveBooleanfalseWith true, the actions also run on indirect passengers, such as the passengers of a passenger.

Examples

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

This heals every entity riding the entity that ran the action, including anything riding on top of them.