1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by cake5diamond, Nov 24, 2021.

Thread Status:
Not open for further replies.
  1. cake5diamond

    cake5diamond Member

    Joined:
    Nov 24, 2021
    Messages:
    2
    Likes Received:
    0
    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?
     
  2. ForUtoo

    ForUtoo New Member

    Joined:
    Oct 28, 2021
    Messages:
    3
    Likes Received:
    0
    No sorry, unless you do this with endermen you can. Ask someone or go to skript github and ask them to add that option.
     
  3. KokoPlayzYT

    KokoPlayzYT Member

    Joined:
    Aug 6, 2021
    Messages:
    21
    Likes Received:
    1
    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.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...