Ejemplo n.º 1
0
def EntityBeyondDistance(
    first_entity: CoordEntityTyping,
    second_entity: CoordEntityTyping,
    min_distance,
    condition,
    negate=False,
):
    return instr.IfEntityDistanceState(condition, first_entity, second_entity,
                                       min_distance, negate)
Ejemplo n.º 2
0
def EntityWithinDistance(
    first_entity: CoordEntityTyping,
    second_entity: CoordEntityTyping,
    max_distance,
    condition,
    negate=False,
):
    return instr.IfEntityDistanceState(condition, first_entity, second_entity,
                                       max_distance, not negate)
Ejemplo n.º 3
0
def PlayerBeyondDistance(entity: CoordEntity, min_distance, condition, negate=False):
    return instr.IfEntityDistanceState(condition, PLAYER, entity, min_distance, negate)
Ejemplo n.º 4
0
def PlayerWithinDistance(entity: CoordEntity, max_distance, condition, negate=False):
    return instr.IfEntityDistanceState(condition, PLAYER, entity, max_distance, not negate)