How do I check what direction the player is facing?

Started by MateB on

Topic category: Help with MCreator software

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I check what direction the player is facing?

Hi!

I'm trying to make the spy's knife from tf2 but I need help.

How do you check if the player that you hit with the item is facing the opposite direction of the player who hits the player with the item?

Thx for the help!

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try Direction of Event…
Fri, 12/30/2022 - 00:42

Maybe try Direction of Event/target entity in Entity Data

I dont know how to get exactly what you want, but you could also try to tinker with Direction (yaw) in deg. relative to S of Event/target entity 

Hope this helps a little bit

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there a way to do this…
Mon, 08/12/2024 - 03:14

is there a way to do this with the entity dependencies, because if i dont use it on a block position trigger, it gives an error