I want to make a code,i create some entity(lets call this npc), and freeze it on some x y z, so the npc will not moving.
But when player come close to the npc. and looking at the npc, the npc will look back at player too ( if you play mcpc server, there are anpc, when we tap it it join to minigames, when we come close to the npc, npc pitch and yaw are follow us ).
i think ituse pitch yaw + cos/sin/abs ( i dont undersatnd cos sin abs )
any1 can tell me how?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to make a code,i create some entity(lets call this npc), and freeze it on some x y z, so the npc will not moving.
But when player come close to the npc. and looking at the npc, the npc will look back at player too ( if you play mcpc server, there are anpc, when we tap it it join to minigames, when we come close to the npc, npc pitch and yaw are follow us ).
i think ituse pitch yaw + cos/sin/abs ( i dont undersatnd cos sin abs )
any1 can tell me how?