Skip to content

Attacker Condition

Entity Condition Type.

Applies a bi-entity condition check with an entity as the actor and the attacker of that entity as the target.

Type ID: apugli:attacker_condition

Fields

Field Type Default Description
bientity_condition Bi-entity Condition The bi-entity condition to test for with the entity as the actor and its attacker as the target.

Example

"condition": {
    "type": "apugli:attacker_condition",
    "bientity_condition": {
        "type": "apoli:relative_rotation",
        "actor_rotation": "head",
        "target_rotation": "body",
        "comparison": ">=",
        "compare_to": -0.8
    }
}
This example tests if an entity's attacker is essentially facing the entity.