ID:172364
![]() May 23 2004, 4:00 pm
|
|
I am working on a shooter game, and when a match is over, I want a way to move or teleport ALL the players to to a certain spot, I know about loc = locate(/blah/blah), but I need to know how to do it with every user, wihtout them having to do anything. I am trying to prevent having to reboot over and over again...Thnx to all that help.
|
Thank You very much. That will improve game play very much. ^_^ I have a question tho, when declaring the
locate(??,??,??), do I have to use coordinates. I am teleporting them to a different map, so can I use M.loc = locate(/turf/wait), "wait" is the turf I want them to go to. I will try it, if not, then I could extend the map, and put the waiting room right into the map... Thnx for you help anyway, it will be very usefull. |
here. all you have to do is call this proc...
proc/Tele(var/x2,var/y2,var/z2)
for(var/mob/M in world)
if(M.client)
M.loc = locate(x2,y2,z2)
to call this proc, simply call it like this
Tele(10,10,1)
that's teleport everyone in the game, who has a client. Enjoy.