@name Holo Follower
@inputs
@outputs
@persist Player:entity
@trigger
runOnTick(1)

if(first()){
holoCreate(1)
holoModel(1,"hq_sphere")
holoColor(1 ,vec(0,0,0))
holoCreate(2)
holoModel(2,"hq_sphere")
holoColor(2 ,vec(0,0,0))
holoCreate(3)
holoModel(3,"hq_sphere")
holoColor(3 ,vec(0,0,0))
holoCreate(4)
holoModel(4,"hq_sphere")
holoColor(4 ,vec(0,0,0))
holoCreate(5)
holoModel(5,"hq_sphere")
holoColor(5 ,vec(0,0,0))
holoCreate(6)
holoModel(6,"hq_sphere")
holoColor(6 ,vec(0,0,0))
holoCreate(7)
holoModel(7,"hq_sphere")
holoColor(7 ,vec(0,0,0))
holoCreate(8)
holoModel(8,"hq_sphere")
holoColor(8 ,vec(0,0,0))
}

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

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

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

# Where the holo's are
holoPos(1, Player:pos() + vec(0,-50,100))
holoPos(2, Player:pos() + vec(0,50,100))
holoPos(3, Player:pos() + vec(50,0,100))
holoPos(4, Player:pos() + vec(-50,0,100))
holoPos(5, Player:pos() + vec(35,35,100))
holoPos(6, Player:pos() + vec(-35,-35,100))
holoPos(7, Player:pos() + vec(-35,35,100))
holoPos(8, Player:pos() + vec(35,-35,100))
