Check the players coordinates, and teleport them based on where they are at.
Code:If (x ==) { Do teleport } else { Do teleport }
|
How to add 2 moveplayers to a object? so away and back teleports for brimhaven dungeon a example:Screenshot by Lightshot
Thanks!
Check the players coordinates, and teleport them based on where they are at.
Code:If (x ==) { Do teleport } else { Do teleport }
Are you talking about if the two players are in the same area?
if the player's x is equal to 3222 (example) the player will move to tile 1 else moved to tile 0.Code:case 1: //object id c.getPA().teleportPlayer(c.playerX == 3222 ? 1 : 0, 0); break;
That's a compact way to do it via ternary.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |