Code:public int[][] spawn_locations = { {"x", "y"}, {"x", "y"}, {"x", "y"}, };Code:int[] randomSpawn = Misc.random(spawn_locations.length); x = randomSpawn[0] y = randomSpawn[1]
|
hey so i wanna have different spawn coords so people login in different locations and not just the same
i wanna have like misc1 loc x (xxxx), y (xxxx)public static final int START_LOCATION_X = 3094;
public static final int START_LOCATION_Y = 3106;
misc2 loc x (xxxx), y (xxxx)
misc3 loc x (xxxx), y (xxxx)
etc.. id be very glad if someone helps me here with the code! =)
Code:public int[][] spawn_locations = { {"x", "y"}, {"x", "y"}, {"x", "y"}, };Code:int[] randomSpawn = Misc.random(spawn_locations.length); x = randomSpawn[0] y = randomSpawn[1]
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |