I had this working when it was only following me, but it wont work now, it just makes a little square over the E2...
Thanks in advance!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) }![]()
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
uhh im not? there before interval(10)
interval() executes the whole chip, so yes, you are calling them every execution.
Just put them inside "if(first())".
Code:if(first()){ Target = owner() holoCreate(1) holoModel(1, "cube") holoCreate(2) holoModel(2, "cube") } interval(10)
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
Ok... no diffrence... beside the ops went down... its still just a hologram with the e2 inside of it, and follow <player> does nothing...
If u just want it to follow you here is the code
e2 Code:
@name @inputs @outputs @persist @trigger all if(first()){ holoCreate(1) holoCreate(2) } holoModel(1, "cube") holoModel(2, "cube") runOnTick(1) Pos1 = owner():pos() + owner():right()*90 + vec(0,0,50) Pos2 = owner():pos() + owner():right()*-90 + vec(0,0,50) Stuff = vec(5,5,5) holoPos(1,Pos1) holoAng(1, owner():eyeAngles()) holoPos(2,Pos2) holoAng(2, owner():eyeAngles()) holoScale(1, Stuff) holoScale(2, Stuff)
Change interval(10) with runOnTick(1), and you should be fine.
EDIT: @ woto:
No, he said it worked fine when it followed him, but screwed up when it followed others.
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
Is it still bugged, or is it the problem solved?
I couldn't make out a meaning of your last post.
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Wire FPGA
Bugged. Sorry. When i spawn it, it does follow me, but as soon as i say anything, it goes to the map origin and stays there.
Bookmarks