@name Portal Turret
@inputs [Prop Ammo]:entity 
@persist Props:array Prop:entity Target:entity 
runOnTick(1)

if (first()) {
    holoCreate(1)
    holoModel(1,"hq_sphere")
    holoPos(1,entity():toWorld(vec(0,0,40)))
    holoScale(1,vec(1.7,1.8,4))
    holoClipEnabled(1,1,1)
    holoClip(1,vec(0.3,0,0),vec(1,0,0),0)
    
    holoCreate(2)
    holoModel(2,"hq_sphere")
    holoPos(2,entity():toWorld(vec(0,0,40)))
    holoScale(2,vec(1.7,1.8,4))
    holoClipEnabled(2,1,1)
    holoClip(2,vec(-0.3,0,0),vec(-1,0,0),0)
}






















#[
findInSphere(entity():pos(),200)
findClosest(entity():pos())
Find = findResult(1)

if (Find) {
    holoAng(1,(Find:pos()+vec(0,0,35) - holoEntity(1):pos()):toAngle())
}
