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.

kuzmin04

New Member
May 7, 2020
7
0
1
19
I'm looping through a list of locations and the list displays the variables right, but when i try to define them in a location it doesn't work. any ideas?
2vgu2Cd.png

Code:
every 5 seconds in "0":
  loop {generators::*}:
    set {split::*} to loop-index split at ":"
    set {split::*} to {split::2} split at ","
    set {x} to {split::1}
    set {y} to {split::2}
    set {z} to {split::3}
    broadcast "X: %{x}%, Y: %{y}%, Z: %{z}%, WORLD: 0"
    set {location} to location {x}, {y}, and {z} in the world "0"
    broadcast "LOCATION SET: %{location}%"
[doublepost=1588977886,1588972760][/doublepost]Please anyone i would really appreciate it sorry for bumping
 
it may be dumb and it may not even work
but try:
Code:
set {location} to location({x}, {y}, {z}) in world "world"

edit: that's what i do for my locations
 
it might be something with skript-mirror or skellet. try those and let me know.

edit: or skquery idk
 
I tried everything and it still doesn't work
[doublepost=1588996196,1588993752][/doublepost]I set it to this and it still doesn't work:
Code:
    set {location} to location at {x}, {y}, {z} in world "0"
[doublepost=1589000957][/doublepost]Thank you everyone i had to parse it as a number
 
Status
Not open for further replies.