ID:166238
 
I've had troubles with this a lot, in my freeze tag game. Its one of the only things holding me back from getting the game ready to be played. If anyone could help out it would be appreciated.

It needs to randomly pick a player to be it by using a "proc" preferably. Thanks
proc/PickRandomPlayer()
var/list/players=list()
for(var/client/c) players+=c.mob//Loop through all clients in world, and add their mob to a list
if(!players.len) return //If there aren't any players in the world, bail out.
return pick(players) //Grab a random mob from the list of players.