@name 
@inputs 
@outputs 
@persist Scale E:entity F:entity TARGET:entity NAME:string TT

@trigger 

interval(1)
if(first()){
    
    NAME = "ammut"
    
    
    
    TT = 0
    E = entity()
    F = E:isWeldedTo()
    Scale =50
    TARGET = findPlayerByName(NAME)
}
findExcludeClass("*")

findIncludeEntity(TARGET)
findInSphere(E:pos(),Scale)


if(find()){
    
    if(TARGET:keyForward()){
    F:applyForce((TARGET:aimPos()-F:pos())*F:mass() -F:mass())
    }

    if(TARGET:keyLeft()){
        F:setAng(F:angles() + ang(0,10,0))
    }
    if(TARGET:keyRight()){
        F:setAng(F:angles() + ang(0,-10,0))
    }
    
    if(TARGET:keyReload()){
        F:propFreeze(0)
        TT++
    }
    
    
}
if(TT>2){
    F:propFreeze(1)
    TT = 0}
