Can See (Bi-Entity Condition Type)

Checks whether the straight path from the actor entity's eyes to the target entity's eyes is unobstructed.

Checks whether the straight path from the actor entity’s eyes to the target entity’s eyes is unobstructed.

Type ID: apoli:can_see

Fields

FieldTypeDefaultDescription
shape_typeShape Type"visual"Determines how the ray-cast will handle blocks.
fluid_handlingFluid Handling"none"Determines how the ray-cast will handle fluids.

Examples

"bientity_condition": {
    "type": "apoli:can_see"
}

This example will check if the straight path from the actor entity’s eyes to the target entity’s eyes is unobstructed. If the actor/target is behind a source/flowing fluid, is submerged in any kind of fluids, or behind a block that is not see-through (like Glass), the condition will return false.