@name Holo Follower
@inputs
@outputs
@persist Player:entity Rot X X1 X2 Z Z1
@trigger
runOnTick(1)

EPV = entity():pos()+vec(0,0,55)

if(first()){
holoCreate(1)
holoModel(1,"hq_sphere")
holoScale(1,vec(2.2,2.2,2.2))
holoMaterial(1,"models/props_wasteland/rockcliff02b")
holoRenderFX(1,16)
holoPos(1,EPV)

holoCreate(2)
holoModel(2,"hq_sphere")
holoScale(2,vec(2.2,2.2,2.2))
holoMaterial(2,"models/props_wasteland/rockcliff02b")
holoRenderFX(2,16)
holoPos(2,EPV)

holoCreate(3)
holoModel(3,"hq_sphere")
holoScale(3,vec(2.2,2.2,2.2))
holoMaterial(3,"models/props_wasteland/rockcliff02b")
holoRenderFX(3,16)
holoPos(3,EPV)

holoCreate(4)
holoModel(4,"hq_sphere")
holoScale(4,vec(2.2,2.2,2.2))
holoMaterial(4,"models/props_wasteland/rockcliff02b")
holoRenderFX(4,16)
holoPos(4,EPV)

holoCreate(5)
holoModel(5,"hq_sphere")
holoScale(5,vec(2.2,2.2,2.2))
holoMaterial(5,"models/props_wasteland/rockcliff02b")
holoRenderFX(5,16)
holoPos(5,EPV)

holoCreate(6)
holoModel(6,"hq_sphere")
holoScale(6,vec(2.2,2.2,2.2))
holoMaterial(6,"models/props_wasteland/rockcliff02b")
holoRenderFX(6,16)
holoPos(6,EPV)

holoCreate(7)
holoModel(7,"hq_sphere")
holoScale(7,vec(2.2,2.2,2.2))
holoMaterial(7,"models/props_wasteland/rockcliff02b")
holoRenderFX(7,16)
holoPos(7,EPV)

holoCreate(8)
holoModel(8,"hq_sphere")
holoScale(8,vec(2.2,2.2,2.2))
holoMaterial(8,"models/props_wasteland/rockcliff02b")
holoRenderFX(8,16)
holoPos(8,EPV)
}

# Targeting
S = owner():lastSaid():explode(" ")

if(S:string(1)=="!t"){
    
    TempPlayer = findPlayerByName(S:string(2))
    if(TempPlayer:isPlayer()){
        Player = TempPlayer
    }
}

#Where dah holos at
holoPos(1, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(2, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(3, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(4, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(5, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(6, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(7, owner():pos()+vec(0+X1,0+X2,110+Z1))
holoPos(8, owner():pos()+vec(0+X1,0+X2,110+Z1))

X++
Z+=2
X1=sin(X)*100
X2=cos(X)*100
Z1=sin(Z)*10
