ID:171300
 
How do i make it so whenyou login it puts you in the space you want it to cause i had it working before and it stopped working and had an error
Strawgate wrote:
How do i make it so whenyou login it puts you in the space you want it to cause i had it working before and it stopped working and had an error

You want to change the mob's "loc" (location) when they login:

mob/Login()
..() // Do default login stuff
loc = locate(1,1,1) // Or whatever coordinates you want


locate() returns an atom (in this case, a /turf), which we set to the "loc"ation of the player that is logging in.
In response to Malver
Man.dm:6:error::expected a constant expression
In response to Strawgate
That error is most likely coming from another part of code and the DM is locating that segment of code. It happens, sometimes you can even have an error in one code file and the compiler tell you it's in a completely different one. Try looking over the rest of your code to make sure there's no minor errors, (using " instead of ' for defining an icon is a common one, I.E: icon = "man.dmi')

- The Conjuror