Solved Detect if a player walks on a specific coordinate?

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

Redblock6

Member
Apr 13, 2019
12
1
3
45
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
 
you can do

Code:
on any move:
    set {x.%player%} to player's x coordinate
    set {y.%player%} to player's y coordinate
    set {z.%player%} to player's z coordinate
    if {x.%player%} is between 89 and 89.999:
        if {y.%player%} is between 50 and 50.999:
            if {z.%player%} is between 70 and 70.999:
                #do stuff
 
Status
Not open for further replies.