So basically, i am working on a mini game where if you click on a portal, it will teleport you to a random fixed location. To do this, i have made a 2d array as suggested by a friend.
Here is the 2d array
Code:
public int MazeMini[][] = {{2666, 10015}, {2654, 10004}, {2642, 10006}, {2666, 10025},};
I can't seem to figure out how to implement those coords with my servers teleporting method. I am not familiar with 2d arrays so im not sure how i am supposed to do this.
I tried the following methods, but they did not work
Code:
teleportox = MazeMini[1]
teleporttoy - MazeMini[2]
And
Code:
triggertele(MazeMini[1], MazeMini[2], 0, true)
I can explain how the teleport methods work but its pretty self explanatory. Any ideas how i can get this to work? I would really appreciate some help.