Problem description:
Hey, I'm trying to make the character teleport by double clicking anywhere on the map, and it's been working fine till I added a Night/Day system to the game, filling most of the map with an 'Outside' area which changes its overlays at 'night'.
Now, whenever it's night time, and the player tries to teleport somewhere by clicking any 'outside' area on the map, it'll teleport him to 1,1,1 , because the whole area has the same values at night due to it being an 'area' type.. So, is there any way for me to get the coordinates of the turf, or any object palced at that location instead of the area?
Even teleporting the mob to the cursor's location should do, any help?
Thanks in advance :)
Jan 26 2013, 4:43 am
|
|
Could you show the code that makes you teleport?
|
Code:
client Well, it's something along those lines, I removed some of the checks cus' they were irrelevant.. Thanks :) |
Instead of using client/DblClick() you can use turf/DblClick() so you avoid all those obj and mob checks.
turf/DblClick() Use mouse_opacity for the overlays for the night. So they're invisible for the mouse. |