When I connect a client to a server and create an entity this entity remains if I "kill" the client by pressing the window-close-button (upper right x).
This happens also if I ent_remove the entity on_exit. The EVENT_LEAVE ist triggert on the server.
How can I eliminate clients entites if the client was killed?
Re: client disconnected but entities remain
[Re: ]
#287549 09/01/0911:2509/01/0911:25
if (event_type == EVENT_DISCONNECT)
{
wait (1);
ent_remove(me);
}
the entities created by the clients are not automatically removed when they disconnect, you have to program that using the code above. EDIT: of course, that event has to run on the server, not on the client that is killed.