ID:180794
 
how do I set the starting location for mobs?

...too lazy to try and look it up.
how do I set the starting location for mobs?

See this message about locate().

For starting location, you'd call locate() in the mob's Login() proc.
If you draw a mob in the map editor, it'll start there. However, for players, if you want players to appear in a certain location, then look at the mob.Move() and locate() procs in the reference...

locate() proc

mob/Move() proc
In response to Guy T.
For starting location, you'd call locate() in the mob's Login() proc.

I had a dream once, that so many people logged in to my game that they got blocked out because the start turf was occupied. :)
So if you have the same dream, you might want to make a little snippet that checks for that too, something like:

for(var/turf/T in range(locate(x,y,z),2))
if(src.Move(T)) break

/Andreas
In response to Gazoot
I had a dream once, that so many people logged in to my game that they got blocked out because the start turf was occupied. :)
So if you have the same dream, you might want to make a little snippet that checks for that too, something like:

for(var/turf/T in range(locate(x,y,z),2))
if(src.Move(T)) break

Ooh, clever! I'll have to use that at some point.
In response to Spuzzum
On 2/15/01 7:04 pm Spuzzum wrote:
for(var/turf/T in range(locate(x,y,z),2))
if(src.Move(T)) break

Ooh, clever! I'll have to use that at some point.

Be my guest. :)

/Andreas