Has Location (Entity Condition Type)
Checks whether the entity has a position saved under a name.
Checks whether the entity has a position saved by apoli:save_location.
Type ID: apoli:has_location
Fields
| Field | Type | Default | Description |
|---|---|---|---|
id | String | optional | The name to look for. With no id, the condition passes when the entity has any saved position. |
Examples
"condition": {
"type": "apoli:has_location",
"id": "example:recall"
} Passes once the entity has saved an anchor called example:recall.
{
"type": "apoli:action_on_key_press",
"cooldown": 600,
"hud_render": { "sprite_location": "apoli:textures/gui/resource_bar.png", "bar_index": 6 },
"condition": {
"type": "apoli:has_location",
"id": "example:recall"
},
"entity_action": {
"type": "apoli:teleport_to_location",
"id": "example:recall"
}
} The recall key does nothing — and the HUD bar stays hidden — until an anchor has actually been set.
This is a server-side answer, so it is
falseon the client. Do not use it anywhere a condition is evaluated client-side, such as apoli:prevent_entity_selection or a render power’s own condition.