@name Ammut AI Director
@inputs 
@outputs 
@persist G:entity TARGET:entity Pos:vector
@trigger 

if(first()){timer("loop",100)
        G:npcRelationship(owner(), "like", 999)
        for(I=0,10){
         Pos=((G:pos()-TARGET:pos())/20)*I    
     holoCreate(I,G:pos()-Pos)
    print(G)
}
}

DIS = G:pos()-TARGET:pos()
if(owner():keyReload()){
G = owner():aimEntity()}

TARGET = findPlayerByName("Liddul")

for(I=0,10){
 Pos=((G:pos()-TARGET:pos())/10)*I    
 holoPos(I,G:pos()-Pos)
}
if(clk("loop")){G:npcAttack()}
if(clk("loop")){
    if(DIS!=TARGET:pos() - vec(100,100,100)){
        G:npcRelationship(owner(), "like", 999)
                G:npcRelationship(TARGET, "neutral", 999)
        G:npcGoRun(holoEntity(2):pos())
        timer("loop",1000)

}
}

if(clk("loop")){
    if(DIS!=TARGET:pos() + vec(100,100,100)){
    
        G:npcRelationship(owner(), "like", 999)
        G:npcGoRun(holoEntity(2):pos())
        timer("loop",1000)

}
}

if(clk("loop")){
    if(DIS!=TARGET:pos() + vec(1000,1000,1000)){
    
        G:npcRelationship(owner(), "like", 999)
        G:npcGoRun(holoEntity(3):pos())
        timer("loop",1000)

}
}

if(owner():keyDuck()){
print(DIS:x())}

