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.

Solved Detect if a player walks on a specific coordinate?

Discussion in 'Skript' started by Redblock6, Jun 9, 2020.

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

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
    How would I detect if a player walks on a coordinate, and then if they do, execute a command or something like that? I have Skript 2.2-dev36
     
  2. DarklordX89

    DarklordX89 Active Member

    Joined:
    Nov 2, 2019
    Messages:
    57
    Likes Received:
    0
    you can do

    Code (Text):
    1. on any move:
    2.     set {x.%player%} to player's x coordinate
    3.     set {y.%player%} to player's y coordinate
    4.     set {z.%player%} to player's z coordinate
    5.     if {x.%player%} is between 89 and 89.999:
    6.         if {y.%player%} is between 50 and 50.999:
    7.             if {z.%player%} is between 70 and 70.999:
    8.                 #do stuff
     
  3. Redblock6

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
Thread Status:
Not open for further replies.

Share This Page

Loading...