Solved How to use absolute coordinates

  • 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 community!

    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.

plantje17

New Member
Aug 11, 2019
6
2
0
I'm trying to write a script that displays server rules when players click on a row of signs at spawn. So I want a script that basically does "when player right-clicks sign at location 18 65 0 in world "world", send "[rule]" to player", but I can't figure out the right syntaxis for defining this exact location. Currently I have this:

on rightclick on sign at location 18 65 0 in world "world":
send "Rule 1:" to player
 
Thank you for the suggestions, but how exactly do I specify the coordinates? I tried if event-block's position is 17, 64, -2, but then the console gave an error saying you can't compare a location to an integer. I also tried without the commas and with brackets, but to no avail.
[doublepost=1565597031,1565596468][/doublepost]Update: I found a way to do it. if event-block's position is the location (17, 64, -2): seems to do the trick. Again, thanks a lot!
 
  • Like
Reactions: malia
Status
Not open for further replies.