@name S.T.E.V.E
@inputs Grab Release Fire NoFire Target:entity
@outputs IsGrabbing IsFiring Yaw Zpos
@persist Isg Isf Bear
#Simple Turret to Erradicate Virtually Everything
interval(10)
Ent = Target:pos()+vec(0,0,Target:height()/2)

Bear = entity():bearing(Ent)
Height = Target:pos()
Yaw = Bear*2 + $Bear*10
Zpos = Height:z() + Target:height()*0.8

if (Grab == 1) {Isg = 1}
if (Release == 1) {Isg = 0}
if (Fire == 1) {Isf = 1}
if (NoFire == 1) {Isf = 0}

IsGrabbing = Isg
IsFiring = Isf
