Is this possible? (I need help) / Player looking at player causes an effect?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

cake5diamond

Member
Nov 24, 2021
2
0
1
23
Hiya, I was just wondering if there was some sort of way that I could detect when someone is looking at a player, and if they are looking at a player, then affect that player?

I'm basically trying to make it so that a user can't move when being looked at (like slowness 255 or something), but can move just fine when nobody is looking at them.

Is this even possible?

I know it can be done on mobs with command blocks, but I am wondering if there is some way to do this with skript by checking the yaw of players?
 
Yes there is a way, you can use in skript "target player" that should solve your problem, with command blocks i dont think its possible. but this is a skript section sooo yeah.
 
Status
Not open for further replies.