Solved Detect if the player is in a location

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

_PAPER_PLANE_

Member
Jan 21, 2022
41
0
6
(sorry my english is not good)

I want to make a portal that teleport when the player is in a certain position
Also, if I use every ticks will I use more computer performance?
Do I need to use "player is in world" or something like that?

Thanks!
 
(sorry my english is not good)

I want to make a portal that teleport when the player is in a certain position
Also, if I use every ticks will I use more computer performance?
Do I need to use "player is in world" or something like that?

Thanks!
didn't test it but i belive this should work
Code:
on join:
      while player is online:
            while player is at location 0, 0, 0 in world "world":
                  message "test"
 
upload_2022-7-31_16-54-48.png
 
Is that so? But it doesn't work.
Sorry I don't quite understand what you mean XDD

Code:
every 5 ticks:
    set {_1} to location at location(-20.5, 51.5, -5.5, world "world")
    teleport all players where {_1} to location(-58.5, 51.5, 0.5, world "world")
 
Code:
every 5 ticks:
  set {_l} to ...
  teleport all players where [distance between input and {_l} <= 0.4] to {_l}
 
Status
Not open for further replies.