I had this working when it was only following me, but it wont work now, it just makes a little square over the E2...
e2 Code:
@name
@inputs
@outputs
@persist Target:entity
@trigger all
if(first()){
Target = owner()
}
holoCreate(1)
holoModel(1, "cube")
holoCreate(2)
holoModel(2, "cube")
interval(10)
runOnChat(1)
if(chatClk()){
Command = owner():lastSaid():explode(" ")
if(Command:string(1) == "follow"){
if(findPlayerByName(Command:string(2)):isPlayer()){
Target = findPlayerByName(Command:string(2))
}
}
}
if(tickClk()){
Stuff = vec(5,5,5)
holoPos(1, (Target:pos()+(owner():right()*90))+vec(0,0,50))
holoAng(1, Target:eyeAngles())
holoPos(2, (Target:pos()+(owner():right()*-90))+vec(0,0,50))
holoAng(2, Target:eyeAngles())
holoScale(1, Stuff)
holoScale(2, Stuff)
}
Thanks in advance!
Bookmarks