Skip to main content

Exists (Entity Condition Type)

Checks whether the entity is in the world: it hasn't died, despawned or been unloaded, and, for a player, they are online. The offline copy of a player that apoli:action_on_entity_set hands out with include_offline doesn't exist by this test.

Type ID: apoli:exists (also written apoli:online)

Fields

This condition has no fields.

Examples

"condition": {
    "type": "apoli:exists"
}
"bientity_condition": {
    "type": "apoli:actor_condition",
    "condition": {
        "type": "apoli:online"
    }
}

This passes when the actor is a player who is online, and not the offline copy of one.