Game Development Community

%client.delete();

by Entr0py · in Torque Game Engine · 03/31/2005 (2:55 pm) · 3 replies

Using %client.delete(); will crash my server from script, but if i type ####.delete(); in the console the connection is disconnected cleanly (the number being the Id of the connection). Anybody know a way around this or why it is happening?

#1
03/31/2005 (3:12 pm)
I am guessing it is because the executable is still using %client for functions other than script. I guess there is no safe way to delete a client before they are in-game huh?
#2
03/31/2005 (3:25 pm)
Ok this works:

function disconnect(%client)
{
%client.schedule(1000,"delete");
}
#3
03/31/2005 (4:03 pm)
LOL, you asked and answered in 30 minutes. I wish all problems were this easy.