Solved Is looking at player, loop players in radius

  • 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.

vitusverden

Active Member
Aug 16, 2017
50
2
8
25
Okay, so i am making a magic skript, and i want a magic to loop players in radius 7. Is this possible? I also need help at checking "if player looking at a player:".

I have tried both docs and forums and i found no help.
 
Use
code_language.skript:
loop players in radius 7 of player:
and
code_language.skript:
if target of player is a player:
 
Does not work, i would like so it opens a gui when you click in the air with a stick.
Try
code_language.skript:
on right click holding stick:
    clicked block is not set
    # gui code
 
Then it also runs when you click on a player
code_language.skript:
on right click holding stick:
    clicked block is not set
    if clicked entity is set:
        clicked entity is a player
        stop
    # gui code
 
code_language.skript:
on right click holding stick:
    clicked block is not set
    if clicked entity is set:
        clicked entity is a player
        stop
    # gui code

Worked perfectly, thank you
[doublepost=1533982769,1533981844][/doublepost](to other reading this that have the same problem) This is what i came up with:

code_language.skript:
on rightclick:
    if player is holding a stick named "&9Tryllestav" with lore "&3Højreklik for at bruge magi. Mere info: /info magi":
        if target of player is not "<none>":
            target of player is online
            #gui code
        else:
            #other gui code
 
Status
Not open for further replies.