ID:176827
 
I know how to warp by tilesets, but is there a way by doing it by location? What I am saying is, that I have multiple doors in my game, I want them all to warp to different locations. How do I do it?
SSJKaclis wrote:
I know how to warp by tilesets, but is there a way by doing it by location? What I am saying is, that I have multiple doors in my game, I want them all to warp to different locations. How do I do it?

When you place them on the map, right click the door icon and choose Edit....

Once a new window opens scroll down to find where it says:

destx
desty
destz

In red letters, to the right of it should look like this:

""

Once you see those, double click on the white space of the box you wish to type in and when you are in the box with the typing cursor input the x, y and z destination that you wish the mob to go upon entering that turf.

Otherwise, just hard code the doors and like the following example:

turf/door
icon = 'door.dmi'
icon_state = "open"
Entered()
src.loc = locate(X,Y,Z)
//Where X, Y, Z are, change them to the relevant co-ordinates.
//IE; 39,27,3.


--Lee
In response to Mellifluous

> turf/door
> icon = 'door.dmi'
> icon_state = "open"
> Entered(atom/A)
if(istype(A,/mob/player))
var/mob/M = A
> M.loc = locate(X,Y,Z)
> //Where X, Y, Z are, change them to the relevant co-ordinates.
> //IE; 39,27,3.
>


Hold on a minute there. src is the turf which is not what you want. You need to use the first parameter to Entered().