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 Location variables without pitch and yaw

Discussion in 'Skript' started by ZhengYueMoon, Jul 31, 2022.

  1. ZhengYueMoon

    ZhengYueMoon Member

    Joined:
    Mar 9, 2022
    Messages:
    15
    Likes Received:
    0
    I want to set a specific variable(example: {_cords}) to the location of player, but without the pitch and the yaw, only the x y z.

    Thank you.

     
  2. Best Answer:
    Post #4 by Sabified, Jul 31, 2022
  3. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    98
    Likes Received:
    6
    stringify and split it
     
  4. ZhengYueMoon

    ZhengYueMoon Member

    Joined:
    Mar 9, 2022
    Messages:
    15
    Likes Received:
    0
    Sorry, I am quiet new to skript, can you please tell me how can I do this?
     
  5. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    28
    Likes Received:
    2
    Code (Text):
    1. command /getcoords:
    2.     trigger:
    3.         set {_coords} to "%x-coord of player%, %y-coord of player%, %z-coord of player%"
    4.         send {_coords} to player
    5.  
     
  6. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    98
    Likes Received:
    6
    that also works, you can just get each location value (x-coord, world, yaw etc) from a location
     
  7. ZhengYueMoon

    ZhengYueMoon Member

    Joined:
    Mar 9, 2022
    Messages:
    15
    Likes Received:
    0
    Thank you!
     

Share This Page

Loading...