Teleport issues in Developer Help
|
|
Code:
mob host2 verb Start_Game() set category = "Host" if(battle == 1) usr << "Please wait untill intermission to change the settings" else world << "The Battle Begins NOW!(5 minutes)" world << "Ready Up!" src.verbs -= (/mob/host2/verb/Start_Game) if(magearena == 1) for(var/mob/M in world) Start() if(basebattle == 1) for(var/mob/M in world) TeamStart()
|
Code:
mob/proc Start() for(var/mob/M in world) M.loc=locate(167,147,1) M.ready = 1 sleep(600)</b>
|
Problem description:When ever the game starts its is suposed to teleport the other players to the location, but only 1 person teleports
|
Doing this, it will move one player, then wait for one minute, then move the next player... until it gets through all mobs in the world. Basically all you need to do is move the sleep back one tab:
So that it will move all of the mobs and then sleep. Assuming you need the sleep in there at all.