@name Cop Door
@inputs Target:entity
@outputs Door
@persist 
@trigger 
interval(10)
Job = Target:team():teamName()
if(entity():pos():distance(Target:pos())<=50){
 if(Job=="SWAT" || Job=="Navy Seal" || Job=="Civil Protection" || Job=="Admiral" || Job=="Superhero" ){
        Door=1
    }
    else{Door = 0}
}
else{Door = 0}
print(owner():team():teamName())
