@name Turtle
@inputs Pod:wirelink Cam:wirelink
@outputs 
@persist  E:entity
@trigger 
runOnTick(1)

if(owner():keyUse()){
    if(changed(owner():keyReload())&owner():keyReload()){
        G = owner():aimEntity()
        F = G:name()
        E = findPlayerByName(F)
        print("Target Aquired")
        print(E)
        
}}
        


Ang = Pod["Entity",entity]:driver():eyeAngles()

W = Pod["W",number]
A = Pod["A",number]
S = Pod["S",number]
D = Pod["D",number]
Space = Pod["Space",number]
Shift = Pod["Shift",number]

Cam["Angle",angle] = E:angles() + ang(0,90,0)

Cam["Position",vector] = E:pos()+vec(0,-500,100):rotate(E:angles())

Cam["Activated",number] = Pod["Active",number]

ACTIVE = Pod["Active",number]


if(W){
    print("test")
E:setVel(vec(0,0,1000))
}
