how do I set the starting location for mobs?
...too lazy to try and look it up.
ID:180794
![]() Feb 15 2001, 11:58 am
|
|
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 |
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 |
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. :) Ooh, clever! I'll have to use that at some point. |
See this message about locate().
For starting location, you'd call locate() in the mob's Login() proc.