@name Bee Defense Chip
@inputs Kill Passoff:entity Targets:array
@outputs Target:array Active
@model models/expression 2/cpu_expression.mdl
interval(200)
entity():setColor(vec(255,255,0))
if(Kill==2){
    Active=1
    Target=array()
    findInSphere(Passoff:pos(),5000)
    findIncludeModel("models/hunter/plates/plate.mdl")
    findSortByDistance(Passoff:pos())
    Bz=findToArray()
    for(C=1,3){Target[C,entity]=Bz[C,entity]}
    if(Target:count()==2){Target[3,entity]=Target[1,entity]}
    if(Target:count()==1){for(C=2,3){Target[C,entity]=Target[1,entity]}}
}else{Target=Targets Active=0}
