def EntityBeyondDistance( first_entity: CoordEntityTyping, second_entity: CoordEntityTyping, min_distance, condition, negate=False, ): return instr.IfEntityDistanceState(condition, first_entity, second_entity, min_distance, negate)
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)
def PlayerBeyondDistance(entity: CoordEntity, min_distance, condition, negate=False): return instr.IfEntityDistanceState(condition, PLAYER, entity, min_distance, negate)
def PlayerWithinDistance(entity: CoordEntity, max_distance, condition, negate=False): return instr.IfEntityDistanceState(condition, PLAYER, entity, max_distance, not negate)